cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uploading large files from pythonanywhere webapp

Uploading large files from pythonanywhere webapp

Explorer | Level 4

Hi all!

 

Here's the situation - I've got a simple little script that runs smoothly on my computer, and that I've recently ported over to pythonanywhere so as to use http-post functionality. 

 

For the sake of context, the flow is quite simple -  

I get a Zoom-hook notification when a new recording is available, and the script then downloads the file, converts the m4a audio to mp3, uploads to dropbox, and sends a post-request to my site regarding the availability of a new dropbox audio-file. (Also some other stuff, but nevermind those). 

 

The thing is, my upload keeps failing. This never happens when running on my laptop, but for some reason when running from pythonanywhere the session times-out, tries again, fails again, and eventually gives up after about 48 minutes of audio have been uploaded... 

 

I'm using upload-sessions, and the dropbox.Dropbox instance is being istantiated with 60*60*5 timeout, so that shouldn't be the issue... I've also tried things like reopening a new dropbox.Dropbox instance every 10 minutes of upload or so, and some other wierd stuff. 

 

Any suggestions would be very welcome indeed! I've got everything except this point running perfectly and I'm planning on upgrading to a payed dropbox plan this week, but I'd like to get this going properly first...

 

Thanks a buncharoonie!

 

 

 

1 Reply 1

Re: Uploading large files from pythonanywhere webapp

Dropboxer

I'll be happy to try and help with this, but I could use some more information. Can you share:

  • the version number of Python you're using
  • the version number of the Dropbox Python library you're using
  • the steps to reproduce the issue, including relevant code snippet(s) (but don't include your access token)
  • the full text of any error or unexpected output
Polls
Are you starting new work habits this year?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?