Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: prepare_grant_uri() got multiple values for argument 'response_type' #440

Open
t3ndai opened this issue Feb 14, 2021 · 0 comments

Comments

@t3ndai
Copy link

t3ndai commented Feb 14, 2021

client_id = "ids"
client_secret="secrets"
response_type="code"

@app.route('/auth', methods=['GET'])
def auth():
    spotify = OAuth2Session(client_id=client_id, redirect_uri=redirect_uri)
    authorization_url, state = 
    spotify.authorization_url(authorization_base_url,response_type=response_type)

    session['oauth_state'] = state 
    return redirect(authorization_url)

with response_type being a parameter required by spotify.

and based on the docs | examples seems it's an issue with requests-oauthlib

also for reference https://stackoverflow.com/questions/28250757/oauth2-requests-oauthlib-typeerror-prepare-request-uri-got-multiple-values-fo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant