Add content, Follow remote libraries



Uploading files works, i see them in my library.
Now i am trying to follow external libraries, but that give me errors like:

Could not fetch remote library, A server error occured

Serverside, they look like this:

2019-03-15 16:27:06,410 ERROR    Internal Server Error: /api/v1/federation/libraries/fetch/
Traceback (most recent call last):
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/django/core/handlers/", line 34, in inner
    response = get_response(request)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/django/core/handlers/", line 126, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/django/core/handlers/", line 124, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib64/python3.6/", line 52, in inner
    return func(*args, **kwds)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/django/views/decorators/", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/rest_framework/", line 116, in view
    return self.dispatch(request, *args, **kwargs)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/rest_framework/", line 495, in dispatch
    response = self.handle_exception(exc)
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/rest_framework/", line 455, in handle_exception
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/rest_framework/", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "./funkwhale_api/federation/", line 135, in fetch
  File "./funkwhale_api/federation/", line 94, in retrieve_ap_object
    data = response.json()
  File "/srv/funkwhale/virtualenv/lib64/python3.6/site-packages/requests/", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python3.6/json/", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

What is the URL format to give there? I tried for example:



To follow libraries, you need libraries urls, which are different from instance urls, because one have multiple users, and each user can have multiple libraries.

You can try with libraries, since this instance host creative commons stuff.

Simply browse the library, and scroll down on artist/album/track pages. You’ll find a “Libraries” section in which you can copy the urls:


Example of a library url:


Thanks ( again). That example worked.

Getting up to speed now :wink:

closed #4

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