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

This may helpful..



find_real_file.png



Regards,


Sadasiva




Please mark helpful/ correct based on the impact


mayurt
Tera Expert

Might be the case u are trying to insert wrong value which is not acceptable


Hi mayur tejnani



Hi Shubhpreet Singh



Thanks for replying



I too thought that may be url is wrong but when i send same request using postman ..BANG i got   incident id in response.. HTTP status = 200.




Dont send too many values try sending one at a time as see if u are getting same error.


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