-
Notifications
You must be signed in to change notification settings - Fork 961
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
Breaking change in minor version? #828
Comments
This will always return an error after an hour when the access token expires. The refresh token has not been saved. Therefore, this pattern is never recommended. Follow the pattern shown on the README:
|
@Peter-Schorn that code is just a simplified example. I’m not complaining that it’s changed I just want to know if it indeed was. Because it did work with 2.4.4. |
Your code is flawed for any version as already described. |
You can repeat yourself being condescending all you want. The question remains: a code that works (even for a split second) in 2.4.4 doesn’t work at all in 2.19.0, is this breaking change intended? If you are uninterested in answering that, don’t. I didn’t ask for a code review. I asked if something broke between versions. |
Don't know. |
It should probably still work and looks like a bug. It's really weird that it works for a user endpoint but not for a non-user endpoint. Can you please share the error with stack trace and any warning spotipy might be raising? |
Hi @stephanebruckert, thank you. With
As I said, with |
@SHxKM in your "old" code can you try to replace
with
and let me know if it helps? |
Yes, |
Since 2.4.4, was added a new parameter Looks like it should be False by default instead of True for things to remain backward-compatible |
Thank you for taking the time to look into this. I guess for now if I don't find additional issues I'll just do:
By the way, is the |
It looks like it is, I would try to initialise it once and pass it where you need. Particularly since the tokens auto-refresh in newer versions! |
Got it. I wonder if that'll mess things up when I'm authenticating both on the app-level and the-user level. But that's for another issue. Thanks a lot @stephanebruckert! |
@stephanebruckert one thing we didn't discuss is why it didn't affect user-level endpoints? (those that require user authorization) Do you know the answer? |
|
Hi,
Super glad to see this maintained after a long halt.
I've noticed after upgrading from
2.4.4.
to2.19.0
that some endpoints likesearch
no longer work when theSpotipy
object is initialized with aauth
param.My old code (now returns an error):
The new code:
Meanwhile, user-related endpoints continue to work with
token
.Is this expected? I couldn't find anything in the release notes regarding this. Maybe I didn't look hard enough.
Also: am I correct in saying that the cache system is only for the application's access token, not those of the application's users?
The text was updated successfully, but these errors were encountered: