SAP-archive / Issues

Creative Commons Attribution 4.0 International
6 stars 4 forks source link

Call API Business Hub API from a SAPUI5 Application #17

Closed superwangnan closed 3 years ago

superwangnan commented 3 years ago

Tutorial: https://developers.sap.com/tutorials/hcp-abh-api-ui5-app.html

Hi team I follow tutorial and run the app in app studio (as step 8). I got 502 error in metadata request. url is: https://demo2021-workspaces-ws-hkg7n-app2.cn40.applicationstudio.sapcloud.cn/sapnanwebapp/apihub_sandbox/successfactors/odata/v2/$metadata?sap-language=EN

Status Code: 502

response body: Bad Gateway request header:

:authority: demo2021-workspaces-ws-hkg7n-app2.cn40.applicationstudio.sapcloud.cn
:method: GET
:path: /sapnanwebapp/apihub_sandbox/successfactors/odata/v2/$metadata?sap-language=EN
:scheme: https
accept: application/xml
accept-encoding: gzip, deflate, br
accept-language: en-US
apikey: JrSwEhLEX9fGLkgutXcSLna0qA2Ocf7A
cache-control: no-cache
cookie: workspaces-ws-29tqz_WSR_SESSIONID=hBjuvJ0M9BIQNYvaIGQvvXYIuYJZS3YGriRyagyrArdF6E2rZebQPjxJfiHOFCXNztsvC3tJobU+Xi/DzORQ3Q==; workspaces-ws-h6449_WSR_SESSIONID=si9cE3Vx6Mhmujvy6uZqssjrqZi06mvlDoA7oRCzL1U3kpbh90dzsWu74mP5wQHWdvKFgQQeBsAEjwT1N3hQ+Q==; workspaces-ws-8cnh4_WSR_SESSIONID=eRNNRya0B0UjhCJMg9VT8JVSua6iI2DsH3oOOjfnmrQaLB2nhNeBenQmksHpFXEbr+XX1vl+mBUChcGGZWZ2vA==; workspaces-ws-gq6gm_WSR_SESSIONID=/hRQpr90iDvzPi0+hQ2oHolH/bSSWhTn5hLRqk+2/aZmOMB+7gmuKkzDzvNE6h5IE6jH5E6H8u6zXKGrQPnd/w==; workspaces-ws-gpfmv_WSR_SESSIONID=mXVRJVYUPa152v8FlTaLFzmVMr8/9yTs+QzxmowOFWw7mFl3v9Dy27HGWTev6JGXUvkCYugGIBBQauFOtIxUvA==; workspaces-ws-jbvvl_WSR_SESSIONID=ih1Dk0IV+kaT5lahShOh3S0zRkT3H5O6Q+sPPnZPMg/4MD7zNv4KIVgeGfV8mOR0RolIcClGaJ3N60MhOz+Nlw==; workspaces-ws-c76w9_WSR_SESSIONID=vFgPfln3quAQir1hr+2NENDhi79jwJ1QFiz2h2EkY3svK3XejZDxz5QTseuBku3anHoi9vrjd+CoGeVHhTejyg==; workspaces-ws-jz4rn_WSR_SESSIONID=N1+M3ANNOecmbGNiH1IO6d5ZCbSiWwQApYFrNkTNUGD/gmLTx8paT8k83EV35wziR2EMou9jgfDruEhuWbSUuw==; workspaces-ws-cdtww_WSR_SESSIONID=SSunctPihlqoWXgffk0SM4pfoCJGkh3GIreTS5LUR+7uAPhZZKIn42IBHPBkAxJwsQFXR42NolfqL0vdLIk7Gw==; workspaces-ws-bwkw6_WSR_SESSIONID=oc06q5UXrPl8TFyB//VI/WHW0EcY6dJbEXB813E/k9qzuD2VeF4nfl6zLCF2QhyL9vcL0XNo9gxayS9i5jcvxQ==; workspaces-ws-7jltc_WSR_SESSIONID=ru4LEObHEX+q47NU788sedJmul1j/V/emmXdZMhndXxKo4SLAJVaS9zIt4Xc2tuTgNIb8DiRabqKnoAEFZ8nlQ==; workspaces-ws-lb9qk_WSR_SESSIONID=OjYhCbyDtDhlFsqFyJBsUSwCr+qv5cVyTnWLMZuDC1faRE//JyXOt4UyKgf1MyEjukMDbEU/MCJR6j7HxYyssQ==; workspaces-ws-8gwnz_WSR_SESSIONID=q7AwlHK0SB2eRAnViQVqMWz+mmIsG5zb3BhDLwUepnOkNFdFkv4fDRM6RjGEOdTLHaOFpMo3FINumhJntuLRzg==; workspaces-ws-jnx6x_WSR_SESSIONID=Kf+Uo6a7itbFK9uGVddoSBFluwZTboHT3EiFH/ZO4n8YXj3E7dlUCM/kNBVZCwFVKFL5m6yPwLl44mJ9saRDqw==; workspaces-ws-fvfmj_WSR_SESSIONID=mCFsRpiHbhQaP8fXsw2iJpDnpb6B4jp3a6/hMj1gK4YHDxaxHA9paSgzM9EsYYBwgmkj8s/q/ex4iJR+1se4kQ==; workspaces-ws-bh7z5_WSR_SESSIONID=aT0QwX5aqn0xkyR5aKBfgmeQeqw3fZPWVcPx5miOrBqi91NW8EwErU9xt5edRgHxCeWxomvCak/IaxvO/heY4Q==; workspaces-ws-8x6n5_WSR_SESSIONID=JoxSL1FTCEV8E+StiiUiOiQ6iuRoaioGKXcdpz1wSH7OX/iYC3nHi0gsVT2Vy2Uu5KNTrNg4o/7j3QF7HhLz0A==; workspaces-ws-nbbj5_WSR_SESSIONID=HnCZA1k8XbRn9OAisEuNuLEuXLTYqtzRhg22uZvoTXtozzrkK1aGLWOKaTqBmsFkm8/xvO2LFnNz8ZqMVf3Phw==; workspaces-ws-5kr29_WSR_SESSIONID=6Lqv1iiKQIZWYakvO3eku/WLuOQKrLl8MRUVe5WlGbSSaVUi1zGXyZB+Le4a6xuit12KNAvf944vo0NRPYrMQQ==; workspaces-ws-z62xq_WSR_SESSIONID=4ILDZ/bcUQ+e5Ry+zz9P7Ebjsxr8HBIhN8gAvg03o5kta/dnzomvUkgcs1StDqc4adTQh6ufx4xyvQcXKhHSwQ==; workspaces-ws-c6kv8_WSR_SESSIONID=8vKdNuVklm0btKIF53UnSe0TMtMQIO7mS28xTPABerFq8APvaCRzCaJsaG/zfnbBwjrBfNslLwbW8FZ9Lxj+Og==; workspaces-ws-j7m2w_WSR_SESSIONID=SwsCeS1K5LQwuPRo3FguHoLhFNkng+dGWiDv1+pR7MajLmXb9kCC+mIUClqA9dV+5btqkSkpRhAa5G0paM8kcA==; workspaces-ws-gqfnk_WSR_SESSIONID=/zxSwvB1hACXektAsM24KOWfXx9rbsPR/E5LlaXu6kO/LjzmzrssTz4EnG9NbhkpuFLtYZCTpeE6h49nN1oRaw==; workspaces-ws-gd6vl_WSR_SESSIONID=3aXvC9Ro8+6s/NIoM0QyaamXckXvqHm0w+w+0ADQYC73FrpMhHmtUyYixyXybdd+3ZbDEn/Htwekw0idzhTAhQ==; workspaces-ws-j4xng_WSR_SESSIONID=q628/BEdOwzSBF4wtnTjnsF2TtQSHFR9o+dhncyzIoFlquv9MhvLZ5tWISLjUVJ0pzNpHbFPlQC6DKryrL85XQ==; workspaces-ws-wsrdh_WSR_SESSIONID=uRQK7iYHICM+F1dLPLFO6HBwZcvEa/hmEGdTcct+1sMhbAriV9KqYThgOhIH0hs3Xb0tR9H1B6KPFZbiuOn7QQ==; workspaces-ws-hkg7n_WSR_SESSIONID=+l5xPZIj4gIkDDmORKPp99kiIiwhFn6Ly43bUycgIDgnYUr/gXSYC3cmIJ10Fds1LqGZSyPMbAgBSD9ozhO5Iw==
maxdataserviceversion: 3.0
pragma: no-cache
referer: https://demo2021-workspaces-ws-hkg7n-app2.cn40.applicationstudio.sapcloud.cn/sapnanwebapp/index.html
sap-cancel-on-close: true
sap-contextid-accept: header
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

response headers:

cache-control: no-cache, no-store, must-revalidate
content-length: 11
content-security-policy: frame-ancestors 'self' *.cn40cf.applicationstudio.sapcloud.cn demo2021-gw.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-app1.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-app2.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-app3.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-app4.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-app5.cn40.applicationstudio.sapcloud.cn demo2021-workspaces-ws-hkg7n-theia.cn40.applicationstudio.sapcloud.cn;
content-type: text/plain; charset=utf-8
date: Wed, 30 Dec 2020 14:21:42 GMT
server: istio-envoy
x-envoy-upstream-service-time: 24335
x-frame-options: SAMEORIGIN
x-request-id: b6c43039-429b-42fb-b5f8-faa5f82f3e6e
IObert commented 3 years ago

Sorry for the late response. Do you still have the same issue? If so, can you confirm that the endpoint works from the SAP API Business Hub UI?

MichaelCzcz commented 3 years ago

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.

If you still have questions, feel free to reopen the issue.