HTTP error - generic server error

Hello All,
I’m trying to make HTTP request, if i’m using long script everyting is working, but when I’m making it shorten, then I facing issue and error is generic server error? how I can fix it?
image

“{ ““messageId””: “””+messageId+“”“, ““caseType””: “””+caseType+“”“, ““caseSubType””: “””+caseSubType+“”“, ““intakeChannel””: ““CCT””, ““platform””: ““CCT””, ““sourceSystem””: ““RPA””, ““rootCauseDescription””: ““ALL””, ““external””: true, ““reason””: “””“, ““parties””: [ { ““source””: ““System””, ““type””: ““CUSTOMER””, ““accountNumber””: ““23423423"”, ““id””: “””+Site+”“”, ““countryCode””: ““OTH””, ““business_unit””: ““OPS_BU””, ““primary””: ““false””, ““editable””: ““true””, ““contacts””: [ { ““id””: ““collabCenterContactID-21"”, ““type””: ““Contact””, ““editable””: true, ““primary””: true, ““firstName””: ““John””, ““middleName””: ““string””, ““lastName””: ““Cena””, ““email””: “””“, ““phone””: ““918378"”, ““language””: ““OTH””, ““addedManually””: ““true”” } ] } ], ““payment””: { ““orderId””: “””+ConfirmationNumber+”“”, ““sourcePaymentId””: ““TRANSACTION_REF_5"”, ““method””: “””+PaymentType+“”“, ““currency””: “””+Currency+“”“, ““amount””: “””+Amount+“”“, ““orderDate””: ““2024-03-04T15:36:42.844Z”” }, ““additionalInfo””: “””+Description+“”", ““communication””: { ““type””: ““EXTERNAL””, ““messages””: [ { ““type””: ““EXTERNAL””, ““text””: ““New Message”” } ] } } "

Error code 500 indicates a server side error.

Without knowing how the server and the service is set up it would indicate that something is wrong with your request somehow, and the server is unable to generate a proper response since the long script seems to be working.

1 Like

Hello @Justinas

Welcome to the Community!!

Please check if all the field names are properly given or if all of them are valid/present.

1 Like

Just FYI all,
Problem has been with API structure but not from my side, but from the server, because there were mistake which has been made by the enginiers, and for this reason when I made script shorten script not works for me, because enginiers made that contact details should be mandatory in the script, while it should be not mandatory.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.