mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #48] Redirect loop when running on Google App Engine with Task Queue #24
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#24
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 @rknLA on GitHub (Apr 9, 2015).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/48
Hi Paul,
I'm not sure if this is a GAE problem, a
requestsproblem, or something on Spotify's end, but I'm opening this here to make sure it's not the latter.I have some python code that looks similar to the following:
The issue that I'm running into is that both locally and when deployed, the
spotipyrequests are resulting in a redirect loop, where thelocationset by the redirect response is exactly the same every time. I've modified therequestssession handler a little bit to print out thehistorythat it collects when following redirects, and I get 30 items that look identical to this:Is this bouncing happening on the Spotify end? Possibly due to some user agent or origin IP? Or Do I need to set an auth parameter to make the call from a GAE server?
When I run
curlon the same URL from my local command line, I get a valid response:Thanks!
@rknLA commented on GitHub (Apr 9, 2015):
False alarm.
This is an issue with GAE+requests that's solved by forcing version 2.1.0, as mentioned in https://github.com/pythonforfacebook/facebook-sdk/issues/130
More info (and the source of the solution) on StackOverflow