JuanJakobo / Pocketbook-Nextcloud-Client

Nextcoud Client for Pocketbook
GNU General Public License v3.0
115 stars 5 forks source link

An unknown error occurred (Curl Response Code 301) #44

Open fancywriter opened 2 months ago

fancywriter commented 2 months ago

This is the only what I see on Apache server logs:

<Pocketbook IP> - - [21/Sep/2024:22:41:06 +0100] "PROPFIND /remote.php/dav/files/<username>/ HTTP/1.1" 301 579 "-" "-"

When I try to connect to my nextcloud on the same network with username and password. What exact CURL request is done? Does it have any logs? Or could I enable the logs to debug it?

If I do manually (from my laptop)

curl -k https://hostname/remote.php/dav/files/username/ -u "username:password"

I am getting 200 OK with

This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.

However, If I add -X PROFFIND, I am getting an error, but a different one (and error 501, not 301):

The server was unable to complete your request.         If this happens again, please send the technical details below to the server administrator.             More details can be found in the server log.

(and no other details in apache or nextcloud logs about that)

fancywriter commented 2 months ago

WebDAV works, I have tested it with davfs2, was able to mount directory (on laptop, not on pocketbook). Though it complained about "the server certificate does not match the server name", which is fine for me, I wish to ignore it now.

fancywriter commented 2 months ago

It appeared it helped when I changed just "hostname" to "https://hostname" in the first field... Would be nice for this app to autocomplete the protocol because it's kind of obvious it's always https...

JuanJakobo commented 1 month ago

Unfortunately it is not obvious as there are still some users using their server without a cert. Once you type in the server URL there should be the text "https://domainname or WebDAV Url" shown. Do you think this remark is not enough?