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

Unhandled exception while retrieving value of "fan_id" #19

Open
orontee opened this issue Nov 10, 2023 · 1 comment
Open

Unhandled exception while retrieving value of "fan_id" #19

orontee opened this issue Nov 10, 2023 · 1 comment

Comments

@orontee
Copy link

orontee commented Nov 10, 2023

Mopidy-Bandcamp extension stopped working few weeks ago.

Here is an extract of the mopidy service journal:

nov. 10 11:43:52 argos mopidy[482]: ERROR    [BandcampBackend-4] mopidy_bandcamp Failed to get collection
nov. 10 11:43:52 argos mopidy[482]: Traceback (most recent call last):
nov. 10 11:43:52 argos mopidy[482]:   File "/usr/local/lib/python3.9/dist-packages/mopidy_bandcamp/library.py", line 46, in browse
nov. 10 11:43:52 argos mopidy[482]:     data = self.backend.bandcamp.get_collection(
nov. 10 11:43:52 argos mopidy[482]:   File "/usr/local/lib/python3.9/dist-packages/mopidy_bandcamp/bandcamp.py", line 136, in get_collection
nov. 10 11:43:52 argos mopidy[482]:     self.fan_id = resp.json()["fan_id"]
nov. 10 11:43:52 argos mopidy[482]: KeyError: 'fan_id'

Installed version:

matthias@argos:~ $ python3 -m pip show mopidy mopidy-bandcamp
Name: Mopidy
Version: 3.4.2
Summary: Mopidy is an extensible music server written in Python
Home-page: https://mopidy.com/
Author: Stein Magnus Jodal
Author-email: [email protected]
License: Apache License, Version 2.0
Location: /usr/lib/python3/dist-packages
Requires: 
Required-by: Mopidy-Local, Mopidy-Listenbrainz, Mopidy-Iris, Mopidy-InternetArchive, Mopidy-Bandcamp
---
Name: Mopidy-Bandcamp
Version: 1.1.5
Summary: Backend for listening to bandcamp
Home-page: https://github.com/impliedchaos/mopidy-bandcamp
Author: Dave Maez
Author-email: [email protected]
License: MIT License
Location: /usr/local/lib/python3.9/dist-packages
Requires: Pykka, setuptools, Mopidy
Required-by: 
@orontee
Copy link
Author

orontee commented Nov 10, 2023

Problem fixed after I updated the identity token in my configuration file. Feel free to close this issue.

May be the exception could be catch and a proper message logged to improve user experience?

Whatever, thank you very much for providing this nice extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant