OCM share not working with Seafile Pro 9.0.5

I try to share a library between two Seafile Pro 9.0.5 servers from $SEAFILE2 to $SEAFILE1

Config:

# $SEAFILE1
ENABLE_OCM = True
OCM_PROVIDER_ID = '$ID1' # the unique id of this server
OCM_REMOTE_SERVERS = [
    {
        "server_name": "$SEAFILE2",
        "server_url": "https://$SEAFILE2.$DOMAIN/", # should ends with '/'
    },
]

# $SEAFILE2
ENABLE_OCM = True
OCM_PROVIDER_ID = '$ID2' # the unique id of this server
OCM_REMOTE_SERVERS = [
    {
        "server_name": "$SEAFILE1",
        "server_url": "https://$SEAFILE1.$DOMAIN/", # should ends with '/'
    },
]

Log $SEAFILE1:

2022-07-06 19:27:51,306 [ERROR] django.request:224 log_response Internal Server Error: /ocm-provider/
Traceback (most recent call last):
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 507, in dispatch
    self.response = self.finalize_response(request, response, *args, **kwargs)
  File "/volume1/$SEAFILE1/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 419, in finalize_response
    assert isinstance(response, HttpResponseBase), (
AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `<class 'NoneType'>`

Log $SEAFILE2:

2022-07-06 21:27:51,552 [ERROR] django.request:224 log_response Internal Server Error: /api/v2.1/ocm/shares-prepare/
Traceback (most recent call last):
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/thirdpart/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/seahub/api2/endpoints/ocm.py", line 364, in post
    consumer_protocol = get_remote_protocol(to_server_url + OCM_PROTOCOL_URL)
  File "/volume1/$SEAFILE2/seafile-pro-server-9.0.5/seahub/seahub/api2/endpoints/ocm.py", line 51, in get_remote_protocol
    return json.loads(response.text)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The Webinterface simply reports “Fehler” (== error).

Any ideas what the problem might be in this case?

Hello, thanks for report this error, we will fix it.

Has there been any progress on this? I’m running into the same problem with 9.0.6 Pro

Same issue with 9.0.6. Please let me know if you are working on this issue.
Or is it a problem in our configuration?

Update: Seafile Pro 9.0.7 fixed the problem for me