404 staus code while downloading the file from box using JWT Rest API
AnsweredHi,
I was trying to download the file from box but getting 404 status code error. plz help me to resolve this issue.
URL: - "https://api.box.com/2.0/files/871324111894/content/
{
"type": "error",
"status": 404,
"code": "not_found",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Could not find the specified resource",
"request_id": "jc6s64gvm13gm0a8"
}
-
Official comment
This error means that the access token you're using does not have access to this file.
To verify the user associated with your access token, you can use the get current user endpoint. By default, JWT apps obtain access tokens for the apps service account.
Your options are:
1. add the user associated with your access token as a collaborator on the content
2. obtain an access access token for a user that already has access
Best,
Kourtney, Box Developer Advocate
Comment actions
Please sign in to leave a comment.
Comments
1 comment