Error downloadFile (Wodpress plugin + Onlyoffice community server)

Good afternoon! I ran into a bug that has already been touched on the forum more than once. I have a WordPress site (image from Bitnami on AWS), which connects to the Onlyoffice server through the integration plugin. I use docker image onlyoffice/documentserver (latest version 7.2) on Amazon Linux 2 OS. I am not using a reverse proxy! Certificates are installed on both servers.
But when using HTTPS I get an error: Download failed


Tests have shown that everything works well on the my site with HTTP!
Here is the log data: /var/log/onlyoffice/documentserver/convertor/out.log

[2023-01-31T02:32:40.503] [ERROR] [localhost] [MjAyMi0xMi0wNSAwMTowMzo1Nw==167] [1] nodeJS - error downloadFile:url=https://mysite.com/wp-json/onlyoffice/getfile/Vd38OgBBMV1algvhgv>
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at TLSSocket.socketOnData (_http_client.js:515:22)
    at TLSSocket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)

Here is the log data: /var/log/onlyoffice/documentserver/docservice/out.log

[2023-01-31T01:25:46.587] [ERROR] [localhost] [MjAyMi0xMi0wNSAwNTowODowNg==177] [1] nodeJS - postData error: url = https://mysite.com/wp-json/onlyoffice/callback/H8iq;data = {"key">
{"code":"rest_cannot_access","message":"Only authenticated users can access the REST API.","data":{"status":401}}
    at Request._callback (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.self.callback (/snapshot/server/build/server/Common/node_modules/request/request.js:185:22)
    at Request.emit (events.js:400:28)
    at Request.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:400:28)
    at IncomingMessage.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:519:28)
    at IncomingMessage.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1333:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

How can i solve this problem? Could it be in in my wordpress site’s Apache config files?

Hello @Mitryou
Please provide us with additional information:

  1. Versions of WordPress and connector app.
  2. If it’s possible, please reproduce the issue with open browser console (F12 in Google Chrome), check ‘Console’ and ‘Network’ tabs and make screenshot of any error entries.
  3. Is it possible to prepare whole server backup\snapshot and update your Document server to the latest version (v.7.3)? It’s better to troubleshoot the issue on the latest versions.

One more thing. Would you mind providing whole Document server logs folder (when the issue is reproduced)?

Thank you for your response! I figured out this problem - it turned out to be more than obvious. Document server conflict with wordpress plugin Password protected. Unfortunately, I have already gone through all the Apache configurations, checked the document server)

We are glad that you managed to solve the issue. Please feel free to contact us if face any issues.