error when connecting box
I want to create an application to upload files to the box, in the process, I get the error below, hope to receive support comments, thanks.
======
10:15:44.0154 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [20] System.AggregateException: One or more errors occurred. (The API returned an error [BadRequest] invalid_grant - Please check the 'sub' claim. The 'sub' specified is invalid.) ---> Box.V2.Exceptions.BoxAPIException: The API returned an error [BadRequest] invalid_grant - Please check the 'sub' claim. The 'sub' specified is invalid. at Box.V2.JWTAuth.BoxJWTAuth.GetTokenAsync(String subType, String subId)
at Box.V2.JWTAuth.BoxJWTAuth.AdminTokenAsync()
--- End of inner exception stack trace ---
======
-
Can you confirm you are passing in the user id or enterprise id correct?
https://developer.box.com/guides/authentication/jwt/without-sdk/#3-create-jwt-assertio
-
Hi Alex Novotny
I'm using UiPath to test the connection, i have not used SDK with languages you suggested above.
Do you have experience with this setting? -
Unfortunately I am not familiar with UiPath, but maybe someone else who views this post will be!
I always recommend using one the official SDKs since the authentication piece is basically automatic.
Please sign in to leave a comment.
Comments
3 comments