[GH-ISSUE #737] spotifyObject exists but no data is being received. #446

Closed
opened 2026-02-27 23:22:41 +03:00 by kerem · 4 comments
Owner

Originally created by @olsonap on GitHub (Oct 28, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/737

I can't get any information from the spotify object which I know exists.
For example:

spotifyObject = spotipy.Spotify(auth_manager=self.auth_manager)
        devices = spotifyObject.devices()
        print("LENGTH OF DEVICES = ", len(devices['devices']))

Nothing ever gets printed.

After keyboard interrupt, here's the terminal output.

File "D:\PyCharm Projects\JAMLabs\spotify.py", line 165, in update_device
devices = spotifyObject.devices()
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 169
4, in devices
return self._get("me/player/devices")
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 297
, in _get
return self._internal_call("GET", url, payload, kwargs)
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 240
, in _internal_call
response = self._session.request(
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\sessions.py", line
542, in request
resp = self.send(prep, **send_kwargs)
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\sessions.py", line
655, in send
r = adapter.send(request, **kwargs)
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\adapters.py", line
439, in send
resp = conn.urlopen(
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries.sleep(response)
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\util\retry.py", line 410, in sleep
slept = self.sleep_for_retry(response)
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\util\retry.py", line 389, in sleep_for_retry
time.sleep(retry_after)
KeyboardInterrupt

Originally created by @olsonap on GitHub (Oct 28, 2021). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/737 I can't get any information from the spotify object which I know exists. For example: ``` spotifyObject = spotipy.Spotify(auth_manager=self.auth_manager) devices = spotifyObject.devices() print("LENGTH OF DEVICES = ", len(devices['devices'])) ``` Nothing ever gets printed. After keyboard interrupt, here's the terminal output. File "D:\PyCharm Projects\JAMLabs\spotify.py", line 165, in update_device devices = spotifyObject.devices() File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 169 4, in devices return self._get("me/player/devices") File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 297 , in _get return self._internal_call("GET", url, payload, kwargs) File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 240 , in _internal_call response = self._session.request( File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen retries.sleep(response) File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\util\retry.py", line 410, in sleep slept = self.sleep_for_retry(response) File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\urllib3\util\retry.py", line 389, in sleep_for_retry time.sleep(retry_after) KeyboardInterrupt
kerem 2026-02-27 23:22:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@olsonap commented on GitHub (Oct 28, 2021):

Is anyone else having this issue right now? My entire project is useless now. I don't see how it could be on my end as I didn't change anything.

<!-- gh-comment-id:954272536 --> @olsonap commented on GitHub (Oct 28, 2021): Is anyone else having this issue right now? My entire project is useless now. I don't see how it could be on my end as I didn't change anything.
Author
Owner

@olsonap commented on GitHub (Oct 31, 2021):

This is so bizarre. Every evening, my program stops working and I get the same issue. Every morning, it works fine again like nothing ever happened.
File "D:\PyCharm Projects\JAMLabs\spotify.py", line 178, in update_device
devices = spotifyObject.devices()
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 1694, in devices
return self._get("me/player/devices")
File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 297, in _get
return self._internal_call("GET", url, payload, kwargs)
Does the Spotify API stop working at night? I don't understand.

<!-- gh-comment-id:955616055 --> @olsonap commented on GitHub (Oct 31, 2021): This is so bizarre. Every evening, my program stops working and I get the same issue. Every morning, it works fine again like nothing ever happened. File "D:\PyCharm Projects\JAMLabs\spotify.py", line 178, in update_device devices = spotifyObject.devices() File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 1694, in devices return self._get("me/player/devices") File "D:\PyCharm Projects\JAMLabs\venv\lib\site-packages\spotipy\client.py", line 297, in _get return self._internal_call("GET", url, payload, kwargs) Does the Spotify API stop working at night? I don't understand.
Author
Owner

@Peter-Schorn commented on GitHub (Oct 31, 2021):

It may be an issue with your internet connection. Are you sure it stops in self._internal_call("GET", url, payload, kwargs)? Is this the full stack trace?

<!-- gh-comment-id:955639059 --> @Peter-Schorn commented on GitHub (Oct 31, 2021): It may be an issue with your internet connection. Are you sure it stops in `self._internal_call("GET", url, payload, kwargs)`? Is this the full stack trace?
Author
Owner

@dieser-niko commented on GitHub (May 23, 2024):

Closing as there is no activity or reply from the author.

<!-- gh-comment-id:2126316942 --> @dieser-niko commented on GitHub (May 23, 2024): Closing as there is no activity or reply from the author.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#446
No description provided.