cancel
Showing results for 
Search instead for 
Did you mean: 

Error status 502 - getaddrinfo ENOTFOUND $(appname).cfapps.ap10.hana.ondemand.com

naveenvishal
Contributor
0 Kudos

Referencing the tutorial: 

https://developers.sap.com/mission.btp-extend-sfsf-cap.html

I am getting the error (error_btp.png) while executing the application from 'HTML5 Applications' Menu from BTP cockpit.

Error Text:
HEAD request to /f1c211d8-644c-4808-9e48-929884cd1ccc.sfsf-projman-poc-e4dke1ry.sfsfprojmansfsfprojman-0.0.1/projman/ completed with status 502 error while forwarding request to https://$(appname).cfapps.ap10.hana.ondemand.com/projman/: getaddrinfo ENOTFOUND $(appname).cfapps.ap10.hana.ondemand.com correlation_id = c26d10e8-d3ed-4814-7e25-6df175343421

GET request to /f1c211d8-644c-4808-9e48-929884cd1ccc.sfsf-projman-poc-e4dke1ry.sfsfprojmansfsfprojman-0.0.1/projman/$metadata?sap-language=6N completed with status 502 error while forwarding request to https://$(appname).cfapps.ap10.hana.ondemand.com/projman/$metadata?sap-language=6N: getaddrinfo ENOTFOUND $(appname).cfapps.ap10.hana.ondemand.com correlation_id = f061c59f-79ec-4768-4807-c1201d30701d

There was no error in build and deploy.

Edit:

It was observed that host: ${appname} in mta.yaml was incorrectly maintained as host: $(appname) which is now corrected, and changes deployed to BTP but still facing the same issue. I suspect some cache is not being cleared.

Please suggest for the errors.

 

Accepted Solutions (1)

Accepted Solutions (1)

naveenvishal
Contributor
0 Kudos

Issue is resolved by adjusting the file mta.yaml. Thanks to @ale_biagi for the suggestion.

Answers (0)