Skip to main content
Question

error when connecting box

  • May 23, 2025
  • 3 replies
  • 35 views

Forum|alt.badge.img

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 ---

======

 

kcuLb1gri0h6X8nsxFqX-LVcQ.png

 

3 replies

Forum|alt.badge.img

Forum|alt.badge.img

Hi  395005653353

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?

tjjCmolNROs69QUGkaXFWO8Uw.png


Forum|alt.badge.img

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.