on 2023 Mar 21 12:38 PM
Hi Team,
I have an Odata4 API on BTP, exposing data in application/json format. While querying this API using Odata4 adapter from CPI, CPI assumes the 'Accept' header value as 'application/xml' as shown in below screenshots !!
screenshot of what we pass in the Accept header
Screenshot of CPI assuming the 'Accept' header as 'application/xml'
This header change results in a 406 error code response from the API !
What can be done here to resolve the issue ?!
Request clarification before answering.
Hello sam..anish i am facing the same problem. did you manage to resolve it ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
In OData receiver adapter, can you please set the below parameter and try again?
Request Headers -> Accept
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
I've maintained that as well but no luck !
Add the "Accept" header with the needed value before the API call in a content modifier step!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
15 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.