-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: PhotoshopSDKError: 401 "Oauth token is not valid" #157
Comments
The day before using the same credentials I was able to get the hello world sample to work. Today it does not work.
So I'm guessing the token expired? I found in the examples code that looks like this:
But I get errors on this call as well. That function is here:
|
Welp, testing again and calling, So generate token is working. I'll use the new token on future calls and see if that works. I don't know what the original error could be. It might be that the signed psd url was invalid and the sdk is passing that error on because I don't see a listing for |
Calling generateIMSToken() first fixes the issue...
|
When following the examples the following code works but just now I'm getting back this error:
The error happens on the call to
getDocumentManifest()
Shouldn't the error occur when calling
client.init()
?Is there a way to tell if the token expired or if the token is not valid?
How long do tokens last? The getting started page says tokens are valid for one hour in part but 60 days in another part. Maybe it's two different things. See the text in the screen shot, "...it is good for 60 days":
I am able to call client.createCutout() and get a invalid input but not an 401. The call fails but it is not a 401 error.
The text was updated successfully, but these errors were encountered: