cancel
Showing results for 
Search instead for 
Did you mean: 

Error while hybrid testing xsuaa

AvaneeshPEOL
Explorer
0 Kudos
474

I am getting the following error while hybrid testing of xsuaa with the command "cds bind --exec -- npm start --prefix app/router"

#2.0#2024 07 23 06:16:08:254#+00:00#INFO#/Auth/OAuth2#####1a570975-e3b0-46c5-9ab7-24a0de27345a####Jqmab6crIGGyZ_n8aT0wfn8ZbDbwgRpm######1a570975-e3b0-46c5-9ab7-24a0de27345a#PLAIN##query does not exist for request url /app/index.html#
#2.0#2024 07 23 06:16:08:254#+00:00#INFO#/Auth/OAuth2#####1a570975-e3b0-46c5-9ab7-24a0de27345a####Jqmab6crIGGyZ_n8aT0wfn8ZbDbwgRpm######1a570975-e3b0-46c5-9ab7-24a0de27345a#PLAIN##sending page with client-side redirect to https://7d2927dbtrial.authentication.us10.hana.ondemand.com/oauth/authorize?response_type=code&client_id=sb-usertestrepeat!t309561&redirect_uri=https%3A%2F%2Fport5000-workspaces-ws-xl8wd.us10.trial.applicationstudio.cloud.sap%2Flogin%2Fcallback#
#2.0#2024 07 23 06:16:08:254#+00:00#INFO#/Auth/OAuth2#####1a570975-e3b0-46c5-9ab7-24a0de27345a####Jqmab6crIGGyZ_n8aT0wfn8ZbDbwgRpm######1a570975-e3b0-46c5-9ab7-24a0de27345a#PLAIN##x-forwarded-path header: undefined#

 I'm not sure what it means when it says "query does not exist for /app/index.html".

I've added the oauth2 redirect uris as adviced in the authentication section of capire, xsuaa hybrid-testing.

I'm not sure what i am doing wrong here.

Also following is the screen i get when i run my "cds bind --exec -- npm start --prefix app/router" command.

Capture.PNG

 

Dino
Explorer
0 Kudos
Hi AvaneeshPEOL,
Dino
Explorer
0 Kudos
did you set the auth-kind in your .cdsrc-private.json? like this: { "requires": { "[hybrid]": { "auth: "xsuaa", "xsuaa": { "binding": {...}}}}}
View Entire Topic
AvaneeshPEOL
Explorer
0 Kudos

Yes, i've executed the command "cds bind -2 instancename:key"

Dino
Explorer
0 Kudos
I didn't ask if you did the binding. I asked if you set the auth-kind: "auth": "xsuaa". Please check this in your .cdsrc-private.json
AvaneeshPEOL
Explorer
0 Kudos
Yep, I've set the auth as xsuaa in the cdsrc-private
Dino
Explorer
0 Kudos
Did you set the correct OAuth configuration URL in your xs-security.json? Documentet here(end of page):https://cap.cloud.sap/docs/node.js/authentication#running-app-router
AvaneeshPEOL
Explorer
0 Kudos
Yes, I am following the same page for xsuaa hybrid setup from the start, i've read this page over 50 times at this point.
Dino
Explorer
0 Kudos
Than I'm running out of ideas for the moment. 😞 Sorry.