Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

@sap/cds-odata-v2-adapter-proxy deployment successful service returns 404

I built and deployed my app with odata v4, then added adapter module for odata v2 and deployed on CF
1- Odata v4 works fine ( tested with single entity )
2- Odata v2 works with but with adapter's URL not with the proxy url.

Adapter Startup Logs:
2020-05-17T21:16:54.02+0530 [APP/PROC/WEB/0] OUT > node index.js
2020-05-17T21:16:54.51+0530 [APP/PROC/WEB/0] OUT [HPM] Proxy created: / -> https://<>-service.cfapps.sap.hana.ondemand.com
2020-05-17T21:16:54.52+0530 [APP/PROC/WEB/0] OUT [HPM] Proxy rewrite rule created: "^/v2" ~> ""
2020-05-17T21:16:54.55+0530 [APP/PROC/WEB/0] OUT app is listing at 0.0.0.0:8080
2020-05-17T21:16:55.97+0530 [CELL/0] OUT Container became healthy

This return v2 metadata
https://<>-adapter.cfapps.sap.hana.ondemand.com/v2/odata/v4/Service/$metadata

Anything with Proxy i.e. with service URL returns 404

https://<>-service.cfapps.sap.hana.ondemand.com/v2/odata/v4/Service/$metadata

Any pointers on what I could be missing ?

  • SAP Managed Tags:
1 REPLY 1

detrapto
Explorer
0 Kudos

If I'm getting it right, your V4-Service should be located here:
https://<>-service.cfapps.sap.hana.ondemand.com/odata/v4/Service/$metadata - in the links mentioned above, you included "/v2" in both the proxied and the unproxied URL, but this should only be part of the proxied one.

  • SAP Managed Tags: