Skip to main content
Question

Pulling file via API problem

  • May 27, 2025
  • 0 replies
  • 10 views

Forum|alt.badge.img

I have an authorized JWT custom application and have set it up in Python using boxsdk. The client is setting up successfully. 

config = JWTAuth.from_settings_file("037382_gcdbvz1l_config.json")
client = Client(config)

 

I am attempting to GET a file that exists in a folder within my organization using the below code.

file = client.file(file_id).get()

# Download the file content.
with open(file.name, 'wb') as f:
    file.download_to(f)


And get the following error:

BoxAPIException: Message: Not Found
Status: 404
Code: not_found
Request ID: s6u9mfhp9hi1nund

 

The file ID exists. What steps am I missing to get this file accesss?

 

 

0 replies

Be the first to reply!