Comments (3)
Each file is uploaded with two requests: the first one saves metadata and the second uploads the file itself. Do you mean you got 401 error only for the second request?
Can you still reproduce it?
If yes, please retry with the latest version from master, I've made it print response body also on 401. I suspect the expired token may be not the case here and the real cause may be described in response body...
from grive2.
Here is the output with the latest version and --debug specified
sync "./tmp/data06" doesn't exist in server, uploading
HTTP POST "https://www.googleapis.com/drive/v2/files" with "{"parents":[{"id":"0B4RChP-vlFkwdjVEdW56SDh6bmM"}],"title":"data06"}"
HTTP response 200
HTTP PUT "https://www.googleapis.com/upload/drive/v2/files/0B4RChP-vlFkwSndFM3Jjb2poTlE?uploadType=media"
HTTP response 401
request failed due to auth token expired: 401 (body: {
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
). refreshing token
HTTP PUT "https://www.googleapis.com/upload/drive/v2/files/0B4RChP-vlFkwSndFM3Jjb2poTlE?uploadType=media"
HTTP response 401
request failed due to auth token expired: 401 (body: {
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
). refreshing token
HTTP PUT "https://www.googleapis.com/upload/drive/v2/files/0B4RChP-vlFkwSndFM3Jjb2poTlE?uploadType=media"
^C
from grive2.
Fixed it in #19. :-)
from grive2.
Related Issues (20)
- Unable to ignore .git/ files and node_modules HOT 2
- CMake error according to policy CMP0004 HOT 5
- Issue with initial sync HOT 2
- authenticate the OAuth2 HOT 4
- Feature : an easy way to install on Linux (flatpak, snap,PPA) HOT 9
- Produce a static binary HOT 3
- Error 403
- CurlAgent Error HOT 1
- Request failed due to auth token expired: 401
- .griveignore not working
- Can't find sync services status with systemctl HOT 11
- Error 400: invalid_request HOT 1
- Error 400: invalid_request HOT 1
- Can't sync directory outside home HOT 5
- Authenticate without Browser HOT 1
- error while loading shared libraries: libsframe.so.0 HOT 3
- sync google sheets HOT 1
- Error lines in the end of sync "request failed due to auth token expired: 401 (body: ). refreshing token exception: /home/kpaxradio/Programs/grive2/libgrive/src/json/JsonParser.cc(165): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)"
- grive2 -a fails after opening the localhost screen
- grive -a returns localhost error HOT 1
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 grive2.