Error in online preview

I get Internal Server Error when open seafile-tutorial.doc online preview.
Version 8.0.4 PRO, Docker installation
In seahub.log:

2021-07-12 12:14:50,834 [ERROR] root:1190 prepare_converted_html failed to add_office_convert_task: Invalid URL '/add-task': No schema supplied. Perhaps you meant http:///add-task?

Traceback (most recent call last):
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/seahub/utils/init.py”, line 1187, in prepare_converted_html
add_office_convert_task(obj_id, doctype, raw_path)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/seahub/utils/init.py”, line 1133, in add_office_convert_task
requests.get(url, params, headers=headers)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/api.py”, line 76, in get
return request(‘get’, url, params=params, **kwargs)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/sessions.py”, line 528, in request
prep = self.prepare_request(req)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/sessions.py”, line 466, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/models.py”, line 316, in prepare
self.prepare_url(url, params)
File “/opt/seafile/seafile-pro-server-8.0.4/seahub/thirdpart/requests/models.py”, line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL ‘/add-task’: No schema supplied. Perhaps you meant http:///add-task?

Check your conf files and ensure that online preview is enabled.

Yes, online preview is enabled:
[OFFICE CONVERTER]
port = 6000
host = 127.0.0.1
enabled = true
workers = 1

Do you have

OFFICE_CONVERTOR_ROOT = 'http://127.0.0.1:6000/'

in seahub_settings.py?

No, I add this directive and online preview start working.
Thank you :slight_smile: