POST /v1/workflow with blank\without the workflowName given 500 internal server error
POST /v1/workflow with blank\null workflowName given 500 internal server error
We should get proper error empty workflow_name or workflow name is required.
If we do not provide the workflow_name key in the payload we get the following error:
{{"500 Error: Internal Server Error { ""code"": 500, ""reason"": ""Unexpectedly failed to insert item into CosmosDB"", ""message"": ""[""The input name 'null' is invalid. Ensure to provide a unique non-empty string less than '1024' characters.""], {""userAgent"":""azsdk-java-cosmos/4.7.1 Linux/5.4.0-1035-azure JRE/1.8.0_212"",""requestLatencyInMs"":169,""requestStartTimeUTC"":""2021-03-01T10:48:11.806Z"",""requestEndTimeUTC"":""2021-03-01T10:48:11.975Z"",""connectionMode"":""DIRECT"",""responseStatisticsList"":[{""storeResult"":{""storePhysicalAddress"":""rntbd://cdb-ms-prod-eastus2-fd29.documents.azure.com:14331/apps/b0b676c7-2ade-4d27-aca1-4fc7bbdeb696/services/19ba9dad-08cb-4507-99e3-86fd380f68ef/partitions/c2edaa6d-10b5-4b3e-b211-6ecef229dafe/replicas/132557659531536721p/"",""lsn"":5263519,""globalCommittedLsn"":5263519,""partitionKeyRangeId"":""1"",""isValid"":true,""statusCode"":400,""subStatusCode"":0,""isGone"":false,""isNotFound"":false,""isInvalidPartition"":false,""requestCharge"":1.24,""itemLSN"":-1,""sessionToken"":""-1#5263519"",""exception"":""[\""The input name 'null' is invalid. Ensure to provide a unique non-empty string less than '1024' characters.\""]"",""transportRequestTimeline"":[{""eventName"":""created"",""durationInMicroSec"":""1000"",""startTime"":""2021-03-01T10:48:11.806Z""},{""eventName"":""queued"",""durationInMicroSec"":""0"",""startTime"":""2021-03-01T10:48:11.807Z""},{""eventName"":""channelAcquisitionStarted"",""durationInMicroSec"":""137000"",""startTime"":""2021-03-01T10:48:11.807Z""},{""eventName"":""pipelined"",""durationInMicroSec"":""1000"",""startTime"":""2021-03-01T10:48:11.944Z""},{""eventName"":""transitTime"",""durationInMicroSec"":""29000"",""startTime"":""2021-03-01T10:48:11.945Z""},{""eventName"":""received"",""durationInMicroSec"":""1000"",""startTime"":""2021-03-01T10:48:11.974Z""},{""eventName"":""completed"",""durationInMicroSec"":""1000"",""startTime"":""2021-03-01T10:48:11.975Z""}],""rntbdRequestLengthInBytes"":706,""rntbdResponseLengthInBytes"":331,""requestPayloadLengthInBytes"":289,""responsePayloadLengthInBytes"":null,""channelTaskQueueSize"":1,""pendingRequestsCount"":1,""serviceEndpointStatistics"":{""availableChannels"":0,""acquiredChannels"":0,""executorTaskQueueSize"":0,""inflightRequests"":1,""lastSuccessfulRequestTime"":""2021-03-01T10:48:11.806Z"",""lastRequestTime"":""2021-03-01T10:48:11.806Z"",""createdTime"":""2021-03-01T10:48:11.807Z"",""isClosed"":false}},""requestResponseTimeUTC"":""2021-03-01T10:48:11.975Z"",""requestResourceType"":""Document"",""requestOperationType"":""Create""}],""supplementalResponseStatisticsList"":[],""addressResolutionStatistics"":{},""regionsContacted"":[""https://osdu-r3mvp-dp1dev-077y-db-eastus2.documents.azure.com:443/""],""retryContext"":{""retryCount"":0,""statusAndSubStatusCodes"":null,""retryLatency"":0},""metadataDiagnosticsContext"":{""metadataDiagnosticList"":null},""serializationDiagnosticsContext"":{""serializationDiagnosticsList"":[{""serializationType"":""ITEM_SERIALIZATION"",""startTimeUTC"":""2021-03-01T10:48:11.806Z"",""endTimeUTC"":""2021-03-01T10:48:11.806Z"",""durationInMicroSec"":0}]},""gatewayStatistics"":null,""systemInformation"":{""usedMemory"":""179848 KB"",""availableMemory"":""7768824 KB"",""systemCpuLoad"":""(2021-03-01T10:47:44.536Z 7.3%), (2021-03-01T10:47:49.536Z 7.1%), (2021-03-01T10:47:54.536Z 6.9%), (2021-03-01T10:47:59.536Z 8.8%), (2021-03-01T10:48:04.536Z 7.1%), (2021-03-01T10:48:09.536Z 7.3%)""},""clientCfgs"":{""id"":0,""numberOfClients"":1,""connCfg"":{""rntbd"":""(cto:PT5S, rto:PT5S, icto:PT0S, ieto:PT1H, mcpe:130, mrpc:30)"",""gw"":""(cps:1000, rto:PT5S, icto:null, p:false)"",""other"":""(ed: true, cs: false)""},""consistencyCfg"":""(consistency: null, mm: true, prgns: [])""}}"" }"}}