Code Monkey home page Code Monkey logo

Comments (2)

bbye98 avatar bbye98 commented on August 17, 2024

The first screenshot with the green "Agree" button looks good. The authorization page lists all possible scopes, which means that both the flow="pkce" and scopes=spotify.WebAPI.get_scopes("all") arguments were accepted.

The 404: Not Found page is a bit concerning. It suggests that the http.server wasn't initialized correctly. (Maybe Flask will work correctly?) Normally, after clicking "Agree", it should display a simple text page saying "Authorization granted. You may now close this page." or something to that effect. In the background, the WebAPI object would then be populated with the access/refresh tokens obtained by exchanging the code you see in the URL (everything after ?code=).

Can you try running the authentication process in a normal Python script instead of a Jupyter Notebook? Without having direct access to your machine, I can't immediately pinpoint what the issue is. Once you've authenticated using the normal Python script, you can just use client = spotify.WebAPI() in your Jupyter Notebook and it'll automatically pick up the cached access token.

I just tested on one of my machines that has never had Minim installed, and both the Python script and Jupyter Notebook routes worked fine, so I'm hoping this isn't a huge logic issue.

from minim.

bbye98 avatar bbye98 commented on August 17, 2024

@santiago20054 As I have not heard back from you, I will assume that you have resolved this issue. As such, I will be closing this thread!

from minim.

Related Issues (19)

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.