Giter Site home page Giter Site logo

Comments (3)

fkalis avatar fkalis commented on July 29, 2024

Since your file's size is 6 GB, the script uses the chunked upload. Between two chunks the access_token will be refreshed (and so does the refresh_token). Every access_token is usually valid for one hour, so this should not be a problem.

It might be that the throttling kicks in because of too many requests. Currently every chunk upload consists of 2 requests, so for the default settings you end up with round about 1.3k requests.

Does the upload work for you with smaller files?

Have you tried to running the script in debug mode? (./onedrive-upload -d myfile.dat)
Does it upload a few chunks before the error occurs?

from bash-onedrive-upload.

TiiFuchs avatar TiiFuchs commented on July 29, 2024

I have exactly the same problem. The filesize is ~8,7 GiB and there were 58 chunks that could be uploaded successfully but then there is a problem with the refresh token.

2017-03-05 14:36:35 Uploading chunk 57 of 'myfile.dat'
2017-03-05 14:36:35 Content-Length: 10158080
2017-03-05 14:36:35 Content-Range: bytes 579010560-589168639/9392167149
2017-03-05 14:36:39 Upload of chunk 57 of 'myfile.dat' finished (Code: 202)
2017-03-05 14:36:39 Acquiring new access token
2017-03-05 14:36:40 Uploading chunk 58 of 'myfile.dat'
2017-03-05 14:36:40 Content-Length: 10158080
2017-03-05 14:36:40 Content-Range: bytes 589168640-599326719/9392167149
2017-03-05 14:36:44 Upload of chunk 58 of 'myfile.dat' finished (Code: 202)
2017-03-05 14:36:44 Acquiring new access token
No refresh token received from API. Please try again or re-authorize.
An error has occurred while uploading 'myfile.dat' (Code: )

from bash-onedrive-upload.

tiagobrc avatar tiagobrc commented on July 29, 2024

I was using the software inside a headnote in a cluster. The problem vanished after I first transferred it to the transfer server.

from bash-onedrive-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.