I tried calling gooddata API with necessary headers using node js but it is showing error 401. If possible it will be really helpful to get a sample code
Best answer by Jan Rehanek
View originalI tried calling gooddata API with necessary headers using node js but it is showing error 401. If possible it will be really helpful to get a sample code
Best answer by Jan Rehanek
View originalCan you please provide more details on what you're trying to achieve and which API you're trying to call?Â
Please could you also send us the code you're currently using too?Â
Once we have more details, we will be happy to look into this further for you.Â
Thank you!
This the function which I am calling on index js and I want to get all the users from the given workspace ID
Thanks for the screenshot. May I know what is the exact error you are getting? Do you have an error ID?Â
Thanks,Â
Â
-Moises
Hey Sasal,
There’s two tokens to keep track of here.
This concept is further described here:Â https://help.gooddata.com/doc/enterprise/en/expand-your-gooddata-platform/api-reference#tag/token
In short, /gdc/account/login returns an SST that you can’t use, for example, to list users, which is why you’re getting this error.
What you should do:
Does that make sense?
Further info on the SST and its expiration:Â https://help.gooddata.com/doc/enterprise/en/expand-your-gooddata-platform/gooddata-platform-overview/gooddata-token-types/sst-session-expiration
Sign in with your community account. This is different than your login to your GoodData account. Don't have a community login? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.