Bandcamp extension no longer connecting

I’ve had the Bandcamp extension working quite happily for a long time now but lately it won’t connect. Has anyone else been experiencing problems with it?
It’s the same with various frontends Iris, Muse, etc and the bookmark doesn’t work either. I’m guessing the API has changed at their end but I thought I’d see if it was just me first.

From my logs:

Aug 13 14:17:19 snapserver-pi01 mopidy[524]: ERROR    [BandcampBackend-4] mopidy_bandcamp Failed to get collection
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: Traceback (most recent call last):
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     (self._dns_host, self.port), self.timeout, **extra_kw)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     raise err
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     sock.connect(sa)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: OSError: [Errno 113] No route to host
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: During handling of the above exception, another exception occurred:
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: Traceback (most recent call last):
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     chunked=chunked)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     self._validate_conn(conn)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     conn.connect()
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     conn = self._new_conn()
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     self, "Failed to establish a new connection: %s" % e)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x721eadd0>: Failed to establish a new connection: [Errno 113] No route to host
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: During handling of the above exception, another exception occurred:
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: Traceback (most recent call last):
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     timeout=timeout
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     _stacktrace=sys.exc_info()[2])
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     raise MaxRetryError(_pool, url, error or ResponseError(cause))
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bandcamp.com', port=443): Max retries exceeded with url: /api/fan/2/collection_summary (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x721eadd0>: Failed to establish a new connection: [Errno 113] No route to host'))
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: During handling of the above exception, another exception occurred:
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: Traceback (most recent call last):
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_bandcamp/library.py", line 47, in browse
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     token=token, ctype=colltype
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_bandcamp/bandcamp.py", line 133, in get_collection
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     proxies=self.proxy,
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     return request('get', url, params=params, **kwargs)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     return session.request(method=method, url=url, **kwargs)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     resp = self.send(prep, **send_kwargs)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     r = adapter.send(request, **kwargs)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
Aug 13 14:17:19 snapserver-pi01 mopidy[524]:     raise ConnectionError(e, request=request)
Aug 13 14:17:19 snapserver-pi01 mopidy[524]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='bandcamp.com', port=443): Max retries exceeded with url: /api/fan/2/collection_summary (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x721eadd0>: Failed to establish a new connection: [Errno 113] No route to host'))
Platform: Linux-5.10.103-v7+-armv7l-with-debian-10.13
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
Mopidy-MusicBox-Webclient: 3.1.0 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Local: 3.2.1 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  uritools: 4.0.0 from /usr/local/lib/python3.7/dist-packages
Mopidy-Muse: 0.0.27 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Iris: 3.67.0 from /usr/local/lib/python3.7/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
  Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Bandcamp: 1.1.5 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.4.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Spotify: 4.1.1 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.3.0 from /usr/lib/python3/dist-packages
Mopidy-Scrobbler: 2.0.1 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.30.4
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

Right now it’s working on my side. With Argos or Iris frontends.

May be your API key has expired?

Strange, I’ve double checked, and even replaced the identity (although it was unchanged) but still no luck.
I even created a new account and used the ID from there but the logs are showing the same errors as above.

“No route to host” seems to suggest it’s a DNS/networking-type issue. Can you ping bandcamp.com from that computer?

Ah, you’re on to something. No, I can’t.
It’s a Pi Zero 2W, it seems I can ping ipv6 addresses from it, but not ipv4. I’ll need to investigate further.

Thanks for that, it was an issue with my static ip configuration. I’d upgraded my router and not updated my config. Excellent!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.