Just a quick update.
Apparently I was looking at the wrong log, this is the error on the seahub log:
[2025-07-01 12:41:29] [ERROR] django.request:241 log_response Internal Server Error: /api/v2.1/ocm/shares-prepare/
Traceback (most recent call last):
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/views/decorators/csrf.py", line 56, in wrapper_view
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/seafile/seafile-pro-server-12.0.14/seahub/seahub/api2/endpoints/ocm.py", line 380, in post
'shareType': consumer_protocol['resourceTypes']['shareTypes'][0], # currently only support user type
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'resourceTypes'
i’m no expert on this but in other similar scenarios I have found that the comma you have towards the end of your config can suggest another OCM_REMOTE_SERVERS entry follows and will error when it doesn’t find it.
It would mean that the manual page showing that comma is wrong though… but might be worth a try