Skip to Content
0
Jul 06 at 09:33 PM

cds watch and approuter not working together

32 Views Last edit Jul 07 at 01:15 AM 3 rev

I am referring to URL:

https://cap.cloud.sap/docs/node.js/authentication

Please get back to me on the following feedback:

Hi I am following along the https://cap.cloud.sap/docs/node.js/authentication tutorial

I've setup everything according to the guide, but when I go to http://localhost:5000 I get redirected (after auth) to http://localhost:5000/login/callback?code=########## , with a blank page saying Internal Server Error.

So the auth works, but the destination is not being forwarded to http://localhost:4004 which is what "cds watch" is serving on. If I head to http://localhost:5000/admin I get the auth redirect again.

---- Edit ----

I was using Brave Browser, I switched to Chrome and it started working as expected.
This was the error I was receiving in Brave

Unchecked runtime.lastError: The message port closed before a response was received.