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

Getting 400 error when try play album on web #178

Open
jimykhan opened this issue Jan 29, 2023 · 0 comments
Open

Getting 400 error when try play album on web #178

jimykhan opened this issue Jan 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jimykhan
Copy link

Hi I am using a premium account for Spotify i am getting errors to play albums in web working fine on both ios and android

  • get token work fine because I am calling spotify API with token work fine I am getting list of albums
    First I am getting token for this method work fine
    await SpotifySdk.getAccessToken(
    clientId: dotenv.env['CLIENT_ID'].toString(),
    redirectUrl: dotenv.env['REDIRECT_URL'].toString(),
    scope: scope
    )
    then connect also work fine with this
    await SpotifySdk.connectToSpotifyRemote(
    clientId: dotenv.env['CLIENT_ID'].toString(),
    redirectUrl: dotenv.env['REDIRECT_URL'].toString())
    when I'm trying play
    Future play(String albumLink) async {
    try {
    var music = await SpotifySdk.play(spotifyUri: albumLink);
    print("$music");
    } on PlatformException catch (e) {

    } on MissingPluginException {

    }
    }
    its given 400 error
    please anyone guide me how to do in web bcx for mobile work fine thanks

@jimykhan jimykhan added the bug Something isn't working label Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant