- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 05:14 AM
Hello Team &&
We face a problem on restAPI.
Suddenly the request from application XYZ to ServiceNow API in lower environment return error400 bad request.
But via postman i get 200 OK result.
Operation:
HTTP GET https://<InstanceURL>/api/now/table/sys_user?sysparam_query=user_name%ABCDEF
Is there anyway to trace the request so that we can see what is causing the error?
Many thanks.,
Kingstan.
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2021 11:03 PM
The issue is found to be at the Java header of the Client's code by which they try to connect with the ServiceNow Instance. The header having authenticator two times. Since there is some chances done at handshake in MiddleWare side, two authenticator causing some issue for the connection. Thus the bad request.
Sharing this info (withOut sensitive data, ofcourse!) for our use in future someone might get such scenario.
Many thanks again for all your time and knowledge/experience sharing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2021 07:42 AM
this might be helpful. let me check on this. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2021 08:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2021 07:47 AM
Hi Kingstan,
It could be a cause. But overall, I think the issue does seem to be with the way the application is configured and consumes our API.
Regards,
Gautham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 09:15 AM
Hi Kingstan,
Please check the logic after function response.setStatus('200'); is called.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2021 11:03 PM
The issue is found to be at the Java header of the Client's code by which they try to connect with the ServiceNow Instance. The header having authenticator two times. Since there is some chances done at handshake in MiddleWare side, two authenticator causing some issue for the connection. Thus the bad request.
Sharing this info (withOut sensitive data, ofcourse!) for our use in future someone might get such scenario.
Many thanks again for all your time and knowledge/experience sharing.