Getting 500 Internal Server Error when submitting the Service Catalog API request for order_now

kumarl
Kilo Explorer

Hello,                                                                                                                                                                                                              
I am using Madrid version of Servicenow. I tried submitting the Service Catalog API request for order_now, but I am getting the error as 'The remote server returned an error: (500) Internal Server Error.'. I tried submitting the request using C#. I have passed input parameters 'sysparm_quantity' and 'variables'. But I am getting the 500 Internal Server Error. Could you please help me out solving the Issue.                                                                                                                                                                                                                                                                                                    Thanks & Regards,                                                                                                                                                        Luman.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

Hi,

please share how are you sending the request as json format?

Did you try testing this with Postman

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

Hi,

please share how are you sending the request as json format?

Did you try testing this with Postman

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

kumarl
Kilo Explorer

Hi Ankur,

Thanks a lot for your quick response. I have tried using the postman, it is returning the response. I have found out the issue, the issue was with the JSON string. I have done some customization of the C# code for constructing the JSON string. Now it is working fine. Once again thanks a lot for your quick response.

Thanks & Regards,

Luman.

@kumarl 

Glad to know that it helped.

Please mark appropriate response as correct and helpful to close the thread

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader