Comments (7)
I've tried it and was not able to reproduce it. Most likely something is wrong with your Application settings (redirect URI is wrong?) or some environment problem.
Could you check the redirect_uris
value in the client_secrets.json
?
Could you run it with browsers tools enabled in the preserve logs mode and see the flow - what URL does it try to hit at the very end?
from pydrive2.
I'm honestly very confused?
I checked the clients_secrets.json
files, and to make sure that the redurect_uris
value were the correct ones, I re-downloaded the client secret file from the Google Cloud, and sure enough it was all good, but out of curiosity I replaced the old client_secrets.json
with the new one, and same issue as before. Didn't fix anything.
Next thing I did was running the process with browser tools, so I went through enabling preserve logs and stuff, then tried to go through the authentication process again and this time it actually worked no problems, tried it once more after that and worked fine again, even though since my last test to this one nothing changed.
This is where I'd say "Problem solved!" But then I remembered a bunch of things I forgot to mention on my original Issue:
I had this problem on the OG PyDrive, and after going to the github and seeing just how dead it was, I replaced it with PyDrive2 in my code to see if the issue was fix, it wasn't, so I made this issue.
When I first encountered this problem was about a month ago, same exact issue, at the time I had other stuff to take care of so I didn't give it much attention, but later in the day I sat down to see if I could actually fix it and again, worked flawlessly with no changes at all.
Looking back this all sounds weeeeird, almost as if it didnt work on specific times of the day, which makes 0 sense.
Hopefully some magic happened and its fixed now, but it might break again tomorrow morning, honestly no clue.
I also would love to post the console logs and the redirect_uris
value, but I dont know if they contain sensitive information.
from pydrive2.
Immediately after finishing writing the thing above, I tried to run the program again and it didn't work, then once more and it didn't work again, then another time and it worked!, then another, and it worked!, then another, and it didn't work, and so on and so forth, randomly working and not, always the same "ERR_EMPTY_RESPONSE" if it didn't work. I have no idea what it is, but on the bright side I now know what URL it tries to hit at the very end! 17:43:43.185 VM485:1 XHR finished loading: POST "https://accounts.google.com/_/common/diagnostics/?hl=en&_reqid=163770&rt=j".
<- it stays on this for a while then moves on to 17:44:49.945 Navigated to chrome-error://chromewebdata/
. On the XHR thing there are a lot of weird numbers and "unknownerror"s and "(anonymous)" things that make me thing that this isn't what you ask and that I also don't know if it has sensitive information but I guess one of you will tell me.
from pydrive2.
So uh, any idea whats causing this? Any way I can fix this? Any more info I could upload to make the problem clearer?
from pydrive2.
@TheSmallBlue hmm. It's not that easy to figure out what's going on w/o access to the environment. It can be pretty much anything. Do you use proxy servers? Could you try a different internet connection? A different browser, different machine? Just to isolate it somehow first.
from pydrive2.
No, I don't use proxy servers as far as I know.
Only other internet connection I have on hand is my phone's 4g connection, and it didn't work there either. Same error.
Tried on a different browser, same error.
Tried it on my phone with both wifi and 4g, both times same error
Unrelated to what you've asked, I also tried deleting my cookies and cache, which did nothing, and making an entirely new app in the google cloud, which also did nothing. Same error screen.
from pydrive2.
Closing as not directly related to PyDrive. Please feel free to reopen if you see this problem again.
from pydrive2.
Related Issues (20)
- A simple way of initializing a pydrive.GoogleDrive object fails when pydrive is replaced by pydrive2 HOT 1
- Cant copy the file... using service account HOT 3
- Fail to authenticate with pydrive2 to google drive HOT 4
- Access blocked: This application request is invalid HOT 1
- Is there a Google Drive file sharing feature? HOT 3
- Unable to list files with service account auth for GDriveFilesystem HOT 3
- How do I write to specific tab? HOT 1
- fetch a specific folder id by folder name HOT 4
- Missing 1.17.1 release? HOT 1
- auth: LocalWebserverAuth: fail if in non-interactive mode
- ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427) HOT 2
- Review and fix issues with find
- Create Succesfull Authentication using Google OAuth client ID for a remote server accessible via SSH in a local machine HOT 1
- AssertionError on using fsspec with service account HOT 1
- [Q]Set Disable Download HOT 1
- Would you be interested to add type hints?
- pyopenssl is a dependency, but it does not seem to be used
- httplib2 is a direct dependency but is not added as one
- SaveCredentialsFile() does not store anything
- CommandLineAuth Generate Wrong Link 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 pydrive2.