Skip to Content
1
Sep 15, 2023 at 10:59 AM

Why doesn't SAP CI OData API v1 working using the OData adapter anymore?

112 Views Last edit Sep 15, 2023 at 11:01 AM 2 rev

Hello,

I have tried to use the SAP CI OData API(https://api.sap.com/package/CloudIntegrationAPI/odata) for exploring one of it's capabilities and it seems it is not behaving same as before.

While trying to fetch the Metadata in the OData adapter v2, it is always failing with the error WstxUnexpectedChar exception. This seems to happen because the service returns an html page instead of what is requested. Same behaviour in Postman and described also by someone else here(https://stackoverflow.com/questions/76601013/get-request-to-api-with-basic-authentication-works-with-browser-but-not-in-postm)

image.png

"<html><head> <link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><script> document.cookie="fragmentAfterLogin="+encodeURIComponent(location.hash)+";path=/";document.cookie="locationAfterLogin="+encodeURIComponent(location.href.split('#')[0].split(location.host)[1])+";path=/";document.cookie=""

It seems related to Cookies, but I find no information on the SAP pages for how to fix it. Do you have any information?

Attachments

image.png (51.5 kB)