500 error in Rest API

Neeraj Sharma10
Tera Guru

Hello experts,


I am trying to integrate with 3rd party tool (cloudplus) , i am using post method to create the test incident ticket, I am getting Error status 500 (Invalid query).

but when i use same url from postman i get successful response (200).

what can be the reason?

Do anyone have experienced same before?

Thanks in advance

1 ACCEPTED SOLUTION

Khozema Attar1
Tera Guru

Hello Neeraj,



You can set the order for the parameters you are sending. It might be possible that all the parameters have same order and thats why your request might not be getting triggered.



Set the order for parameters and see if that works.



Mark as correct if it resolves your issue.



Thanks & regards


Khozema


View solution in original post

9 REPLIES 9

Neeraj Sharma10
Tera Guru

resterror.png


The screenshot of the error.


HI neeraj,



Your end point URL is not correct, Because we only get this error when our URL is not right.


Plz check it and then try   again.



PLZ mark this correct if it resolved your issue or feel free to ask if u still have any queries.


Regards,


Shubh


But same url is working for postman.


Then there may be authentication error plz check that the basic authentication   user id is correct