cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while login to SAP BTP GRAPH service

Ranjith
Participant

Hello All,

I'm trying to login to my SAP GRAPH Instance for the first time using graphctl login -f <filename>. But, getting

'Cannot open /oauth/authorize in browser because: spawn UNKNOWN. Check if the service key is valid.' error.

I have followed all the steps provided in SAP Help Document and assigned the role also.

image.png

gregorw
Active Contributor
0 Kudos

Where exactly do you run the command? I've just tried in the terminal of my VS Code on Mac and it worked just fine. When I ran the command my default browser opened a new tab and showed me then:

Logged in

You have logged in to graphctl. You can close this window.

Ranjith
Participant
0 Kudos

Hello Gregor,

I have downloaded the service-key from SAP GRAPH service instance and ran graphctl login -f shagraph-sk.json to login to to the SAP GRAPH instance in my VS code on windows.

I have created the necessary role collections and assigned to the users.

View Entire Topic
marc_vornetran
Advisor
Advisor
0 Kudos

Hello Ranjithkumar,

Thank you for reporting this issue when trying to log in with graphctl.

The CLI uses your system's default browser to open the OAuth authorization flow.
Have you set a default browser (e.g. Google Chrome, Microsoft Edge, etc.) in Windows?

Kind regards

Marc Vornetran

Ranjith
Participant
0 Kudos

Hello Marc,

As you suggested I have changed the default browser in my windows. But still getting same issue.

marc_vornetran
Advisor
Advisor
0 Kudos

Thanks for checking, at least we can rule that issue out.
In order to be better able to debug your issue could you provide the following details:
- The provider and region of your BTP subaccount: You can find the information by going to the "Overview" section of your BTP subaccount.

- The Graph URL inside the service binding of your Graph instance: Open the "shagraph-sk.json" and copy the value "uri" property.

Ranjith
Participant
0 Kudos

Hello Marc,

Thanks for helping us immediately.

Shall I raise this as a SAP incident because I'm using the Client Account and Could you please share the incident category?

marc_vornetran
Advisor
Advisor
0 Kudos

Feel free to contact me directly at marc.vornetran@sap.com and I will track the issue internally.

Ranjith
Participant
0 Kudos

Shared... Thank you.