cancel
Showing results for 
Search instead for 
Did you mean: 

A python flask app sends the http request failed to invoke a S4 odata v4 service

Javy
Associate
Associate
0 Kudos

Dear Experts,

I created a python flask application which main task is to invoke the odata v4 based API in the system CCW710, the service url is https://ccw-710-api.devsys.net.sap/sap/opu/odata4/sap/api_purordaccrsaccrperdcamount/srvd_a2x/sap/pu... and the credential is COM_0853/Welcome1!

I know in the BTP cloud foundry environment, if a BTP service needs to connect with the S4 services, then the cloud connecter should be created and BTP destination should be created based on the opened cloud connecter, I had already done these and both connection is succeed. but when sending the request in python runtime, it failed always, it looks the DNS failed with error NameResolutionError.

this is my project in github: https://github.tools.sap/I069526/APIPerfEvaluation

you can download to analysis the issue by calling the endpoint '/odata_es5', or it is great that you can create a simple with the code which can invoke the odata v4 system.

1. cloud connector 

Javy_6-1715336011852.pngJavy_7-1715336024282.png

2. destination

Javy_8-1715336044465.png

3. failed when invoke the endpoint

Javy_9-1715336077157.pngJavy_10-1715336083418.pngJavy_11-1715336097132.png

Best Regards, Javy

Accepted Solutions (0)

Answers (0)