Comments (3)
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.
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.
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)
- "you need to add a new platform of type Mobile application" HOT 1
- The provided request must include a 'client_id' input parameter. HOT 1
- Auth problem
- Non-Issue - Confused on the instructions for setting up onedrive for business HOT 2
- An error has occurred while uploading 'test.txt' (Code: 000) HOT 6
- -f (folder) doesn't work
- business auth detail man please
- SharePoint Site
- 'grant_type' parameter must be included HOT 2
- LiveSDK deprecated
- Cannot authorize HOT 3
- Show an actual response message instead of a cryptic Code 400 error
- Unable to Authorize w/ 'code' HOT 2
- +500MB File Upload
- Setup for OneDrive personal need to be reviewed
- Decommisioned Discovery Service REST API for OneDrive for Business. HOT 2
- Can't add mobile platform HOT 1
- Is this tool being supported or abandoned? HOT 1
- Repo Dead Now HOT 1
- Can't register new app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-onedrive-upload.