Symptom
- CAP is running "locally" in BAS
- When starting service via cds w, BAS automatically exposed a new hostname.
- Via browser, the access works for example: https://port4004-workspaces-ws-c6v36.us10.trial.applicationstudio.cloud.sap/
port4004-workspaces-ws-c6v36.us10.trial.applicationstudio.cloud.sap host is exposed by BAP during cds w. - curl --request GET --url "https://port4004-workspaces-ws-c6v36.us10.trial.applicationstudio.cloud.sap/odata/v4/employee/Employees"
returns nothing - curl -v -i -L -X GET https://port4004-workspaces-ws-c6v36.us10.trial.applicationstudio.cloud.sap/odata/v4/employee/Employees
shows error: 401 Unauthorized
Read more...
Environment
- SAP Business Application Studio (BAS)
- BTP
- CAP
Product
SAP Cloud Application Programming Model all versions
Keywords
401, Unauthorized, localhost:4004, localhost , KBA , BC-XS-CDX-NJS , SAP CAP – node.js runtime , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview