Closed AgazW closed 11 months ago
Hi @AgazW
Thanks for submitting this issue to us. To double check this issue, can you just make a simple REST request as here
If the request successfully with REST API but failed on SDK, we will dive deeper to investigate, but if you also got 403 error when sending request manually, you can contact Box Support to figure out what is wrong with this request.
I am looking forward for your answer.
Best, Minh
@congminh1254 Thank you for your prompt response. I get the following:
HTTP/2 403
date: Fri, 03 Nov 2023 19:33:49 GMT
content-type: application/json
x-envoy-upstream-service-time: 154
box-request-id: 0a3c3771b10b38e4a446b1849bbef5bc6
cache-control: no-cache, no-store
strict-transport-security: max-age=31536000
via: 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"zil2ohjij5i2da7"}%
So it's not SDK issue, you can double check about your permission on this file, or take a look at this issue box/box-java-sdk#48.
If the issue persist, you can also contact the Box Support and they will help you understand what's wrong with this file.
Thank you very much for the information.
Description of the Issue
Following is my code to access content (which I uploaded) on my Box account. I'm not the box admin; I have Editor privileges on other content on the box.
Code to access the box
It prints the output :
File "Targeted Protein Accession.csv" has a size of 423 bytes
But when I try to read the content of the file
file_content = box.file(file_id).content()
Error Message, Including Stack Trace