- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 02:47 AM
Dear community members,
Good Day!
I am working on integration using flow designer integration hub. I am updating (PUT) a record in third party application based on some inputs. Now the issue is in response I am getting an error status code 406.
I tried to explore it and found that this error code is due to client has request a response using Accept headers that the server is unable to fulfill.
Could someone please let me know how can I resolve it?
Note: I change the Accept header to application/xml from application/json as when I hit the endpoint using postman, I got the response in XML format.
Best Regards,
Navin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 03:34 AM
Hi Navin,
the headers look good; may be you will have to check with the 3rd party team and inform about this issue.
This is something they can help into since it is their endpoint and they should give details on how to consume the endpoint and with what request body etc
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 03:10 AM
Hi Navin,
Did the 3rd party team give sample request and response format also any http header info to be included if it is REST based?
Is it SOAP based or REST based endpoint
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 03:15 AM
Hi Ankur,
I got only the endpoints.
Also I can see if I hit other tables within third party application, I am getting response in JSON format.
However for one particular table, the response is in XML format and issue is there for this table only.
I have included accept - application/xml and content-type - application/json (since I am sending payload in JSON format) headers in request. Although it is not working.
Please let me know if you need more info.
Best Regards,
Navin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 03:34 AM
Hi Navin,
the headers look good; may be you will have to check with the 3rd party team and inform about this issue.
This is something they can help into since it is their endpoint and they should give details on how to consume the endpoint and with what request body etc
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2019 04:23 AM
Thanks Ankur, I will check the same with third party team.
Best Regards,
Navin