mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #310] Refresh token example does not work #95
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AndreKR on GitHub (Apr 12, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/310
Describe the bug
The supplied
examples/with_refresh_token.rsexits with an error.To Reproduce
Cargo.toml:.envin the project directory with client ID and client secret from the application in Spotify Dev Console and a redirect URL:examples/with_refresh_token.rsintomain.rs.example.comURL from the browser's address bar to the console where your program is running and press EnterActual behavior:
Expected behavior
Something like:
@ramsayleung commented on GitHub (May 1, 2022):
Sorry for not replying earlier, I was too busy at work, and now I am finally have time to check this issue since I am on vocation.
I can't reproduce this error, I run the refresh token example like this:
The error message complains that 'Rspotify is not authenticated', I guess there is something wrong with your authentication process.
What's the output if you run
cargo run --example auth_code --features env-file,cli,client-reqwestin Rspotify project?What about
cargo run --example with_auto_reauth --features env-file,cli,client-reqwest,reqwest-default-tls?@AndreKR commented on GitHub (May 1, 2022):
In your log output you're running the
with_auto_reauthexample, I was talking about thewith_refresh_tokenexample.Both the
auth_codeandwith_auto_reauthexamples work for me as well, it's onlywith_refresh_tokenthat doesn't work.@ramsayleung commented on GitHub (May 1, 2022):
Oooh, my bad, I can reproduce this issue, I am trying to figure out what's going on.
PS:
Thanks for your report, I have addressed the root cause of this problem, and created a PR to fix it.
@ramsayleung commented on GitHub (May 12, 2022):
@AndreKR This PR should fix this example, since Mario are too busy to review this PR, if you can't wait for this PR merged, you could take a peek into the modification of this PR.
@marioortizmanero commented on GitHub (May 16, 2022):
Hi! Sorry for not being too active lately. I was fighting my finals and didn't have much time. Just merged the PR :)