Code Monkey home page Code Monkey logo

Comments (4)

shcheklein avatar shcheklein commented on May 25, 2024

@GePlusE the problem here is that we don't know how to reproduce this - it works for me :(

have you seen this response - https://stackoverflow.com/questions/63955197/pydrive-2-0-authenticationerror-no-code-found-in-redirect ?

how do you run your code? could you create a completely empty virtualenv and run this code from the Python repl?

from pydrive2.

GePlusE avatar GePlusE commented on May 25, 2024

@shcheklein thanks for the quick reply. I've seen this, but I am not sure what LucSpan did differently to make it work.
Am I right that all he did was putting it inside a function?

I run my code via VS Code and I already tried a clean environment but with VS Code.

from pydrive2.

GePlusE avatar GePlusE commented on May 25, 2024

I don't know if this is helpful but I tried it again (without any changes since my last unsuccessful try yesterday) and now the authentication flow was successful and a file was uploaded to my Google Drive. I didn't even need to click or allow anything.

Then I tried it with another file but the same error appeared again. The only change I made was the name of the file I tried to upload (yes, the file exists and is in the same directory ;) )

Could it be possible that the authentication can only be done once in a specific period?

I made changes according to this StackOverflow Solution by Dano. Maybe the save and load of mycreds.txt will help to solve this issue - I will post the result after a next try tomorrow because at the moment I still get the described error.

from pydrive2.

GePlusE avatar GePlusE commented on May 25, 2024

I had some other issues but the solution I found was the key to this issue.

from pydrive2.

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.