on 09-14-2023 8:25 PM
Hello everyone!
Im using the trial of SAP BTP for testing the functionality of this environment. I decided to try something: A custom HTML report and CAP service.
So, while testing, I noticed that the calls to the service didn't work. So, digging up, people said that I should use the API Management for that part of the project.
So I did. And with the first step of this tutorial, could get the GET calls working. But the POST calls still not working.
The project is saved in this repository. (Please ignore the app folder, alongside the index.html. It was a fast page that I didn't give too much attention, and is still in WIP stage. If you want to test it, just write the calls in the console)
This call gave me a "502 bad Gateway" error.
This call gave me a "400 bad request" error.
Using a ajax call still gave me the '400 bad request' error.
Did I miss something to config in API Management or in the service? Do I have to try something else?
Thank you in advance
Hello Agustin,
you can open the link by using S user access.
Please find the note information below:
3156901 - 502: Bad Gateway. Invalid Server certificate when connecting with Cloud Connector to an on-premise SAP system.
com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: HTTP response '502: Bad Gateway. Invalid server certificate' when communicating with <url>
2. In the Cloud connector trace the error message is
Caused by: com.sap.core.connectivity.spi.ssl.SSLHandshakeException: Invalid server certificate
Caused by: java.lang.IllegalArgumentException: Peer host '<hostname>' does not match certificate DNS names [hostname]
The ERP system server certificate DNS name is different from the Cloud Connector HTTPS connection internal hostname.
Modify the Cloud connector internal host name to match the certificate DNS Name of the ERP system.
Thanks,
Lakshmi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its possible to make POST calls to this CAP service? Its there any guide for this?
Thank you for the quick response.
Agustin
Hello Agustin,
Modify the Cloud connector internal host name to match the certificate DNS Name of the ERP system.
Please check the below link:
https://me.sap.com/notes/3156901/E
Thanks,
Lakshmi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lakshmi,
Im not using Cloud Connector, or a ERP system. The POST call is to the CAP service that's defined in the same repository. (A full stack cloud project).
Also, for some reason, I cant access to the URL that you just gave me. Its said "Error in HTTP request" and "undefined".
Thanks you for the quick response.
Agustin.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.