Hello. I am using Onlyoffice app with NC 21 (I know, old version, but my server has low resources). It worked in the past, but I had to move to a new house with a different ISP and router, and needed to reconfigure it. But now, I cannot make it work. I keep getting the following message when I enter the address of my OO document server in the app and hit “Save”:
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: https,%20https (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https,%20https://onlyoffice.my-server.eu,%20onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx
What seems strange to me is that the error is not “Could not resolve host: onlyoffice.my.server.eu”, but instead “Could not resolve host: https,%20https”
I know the app is able to reach the server, because I have an access token and, when I enter the token correctly, I get this error, but when I enter a wrong token I get “Authentication error: invalid token” instead.
Any ideas what could be causing this weird error? Here is the debug log, in case it is helpful:
{"reqId":"5SmypSFclKdr54Hly4io","level":3,"time":"2024-05-09T12:58:08+00:00","remoteAddr":"192.168.0.111","user":"juan","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 6: Could not resolve host: https,%20https (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https,%20https://onlyoffice.my-server.eu,%20onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":false,"timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"0":"And 4 more entries, set log level to debug to see all entries"},"errno":6,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"errno":6,"error":"Could not resolve host: https,%20https","appconnect_time":0,"url":"https,%20https://onlyoffice.my-server.eu,%20onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx","content_type":null,"0":"And 36 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":false,"timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"0":"And 4 more entries, set log level to debug to see all entries"},"errno":6,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":false,"timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"0":"And 4 more entries, set log level to debug to see all entries"},"errno":6,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":48,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":false,"timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"0":"And 5 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":236,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https, https://onlyoffice.my-server.eu, onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx",{"verify":false,"timeout":60,"headers":{"User-Agent":"Nextcloud Server Crawler","Accept-Encoding":"gzip"},"synchronous":true}]},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/documentservice.php","line":370,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https, https://onlyoffice.my-server.eu, onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx",{"verify":false,"timeout":60}]},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/documentservice.php","line":454,"function":"Request","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":[{"0":"https, https://onlyoffice.my-server.eu, onlyoffice.my-server.eu/cache/files/conv_check_1839090014_docx/output.docx/check_1839090014.docx?md5=JdiqcCBHJlSpVEhQOlOEyQ&expires=1715260389&filename=check_1839090014.docx","__class__":"SimpleXMLElement"}]},{"file":"/var/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php","line":172,"function":"checkDocServiceUrl","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":[{"__class__":"OC\\URLGenerator"},{"__class__":"OCA\\Onlyoffice\\Crypt"}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"SaveAddress","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":"->","args":["https://onlyoffice.my-server.eu/","","",true,"my-secret-key",false]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\SettingsController"},"saveAddress"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\SettingsController"},"saveAddress"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":303,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["SettingsController","saveAddress",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"onlyoffice.settings.save_address"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/onlyoffice/ajax/settings/address"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"CustomMessage":"Request converted file on check error"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0","version":"21.0.9.1"}
And also, the server is able to resolve onlyoffice.my-server.eu (this is not the real name, of course), and curl can also reach the server API from the command line.