Skip to main content
Question

Custom App with JWT auth uploads just 12 files per session

  • May 22, 2025
  • 5 replies
  • 26 views

Forum|alt.badge.img

My custom app is very simple, it has to upload every file in a list. Each list consist in 150-170 files and each file is 5 to 7mb in size. The problem I have is it stops in the 10th uploaded file. What is wrong? 
My app uses box SDK for Python, JWT auth and uploads the content to a file shared to the app’s service account. 

5 replies

Forum|alt.badge.img

 hard to tell without much more detail. Does the SDK return an error? 


Forum|alt.badge.img

Hi 

no, it doesn’t. It’s like the session is disconnected. The app is executed in a gcloud function and uploads the files from gcloud storage.  When I run the app this way it upload 10 to 12 files. When I run the app locally it just uploads 3 to 5 files.  Both finish without any error message. 

 


Forum|alt.badge.img

That is weird. If this was a network disconnect then the SDK should return an error. Could you share the code with me?


Forum|alt.badge.img

 

Sorry, my mistake.

The problem was the way I was managing  glocud stream  response. 

I just have to populate a list with the contents of the firestore database query stream and then iterate the list.

Thanks   

 


Forum|alt.badge.img

No problem, I did find it odd that the SDK didn't return a response. I hope it all works out from here.