2 weeks ago
Hello All,
I have a requirement to read the data from the external sap odata service from the s4hana system. but, getting below error.
SAP destination is already Basic authorization.
Error during request to remote service: Received content type 'text/html' which is not part of accepted content types
Regards,
Pragnesh
That's not a Content Type that you should get back from a successful OData API service call - hence the error.
My gut tells me that you might be getting an error during the call and that the API might be poorly implemented enough to be emitting HTML-based error messages. You might want to verify that you can call the service using something like Postman. If the call succeeds, you can verify the content type is something like "application/xml", or "text/xml" (different OData service providers will use one of several XML or JSON content types here). You can force an error, too, to expose the difference.
If this is looking like what's happening, working around it will depend upon the API that you are using to make the call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @MioYasutake @rileyrainey @Arley ,
Please find below my code and let me know where errors come up.
ProCat.cds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are some resources that might help you:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
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.