Closed sirabdude closed 1 month ago
Hi @sirabdude,
The app is actually not requesting localhost. The reason why it states it does is simple: you reached out to us and posted this Stacktrace. Now you might be aware what you just posted, but not everyone is. In case someone doesn't redact the logs, they dox themselves in front of the whole Internet.
Regarding your problem: have a closer look at the servers answer:
Sosh Nextcloud
I guess you'll recognize this title? This isn't localhost. For some reason I can't name, your server responds with a HTML page instead of the requested data.
The page could not be found on the server or you may not be allowed to view it.
That's all I can tell for now. I'd suspect a reverse proxy doing weird things to your request.
Oh, additionally, the requested url was the following:
/index.php/apps/deck/api/v1.0/boards
This means your capabilities endpoint isn't the problem here, since it is requested before any boards. You can try to curl the boards endpoint as well and might get the same thing as the app.
Sometimes errors like this also happen, when you never visited the actual web app before connecting our android app to it. Worth a try, just in case
Hi @sirabdude,
The app is actually not requesting localhost. The reason why it states it does is simple: you reached out to us and posted this Stacktrace. Now you might be aware what you just posted, but not everyone is. In case someone doesn't redact the logs, they dox themselves in front of the whole Internet.
Regarding your problem: have a closer look at the servers answer:
Sosh Nextcloud I guess you'll recognize this title? This isn't localhost. For some reason I can't name, your server responds with a HTML page instead of the requested data.
The page could not be found on the server or you may not be allowed to view it.
That's all I can tell for now. I'd suspect a reverse proxy doing weird things to your request.
Hi @desperateCoder thanks for the reply.
I'm not worried about the stack trace - there's nothing super identifying in it and I'm pretty confident in my firewall ;)
What you're saying makes a lot more sense - in my cursory dig through the android app code I coudltn see for the life of me how localhost would have gotten into the rest calls.
I am running a reverse proxy with some other services proxied through it as well - I imagine I screwed up my nginx config.
Thanks for the help!
Oh, additionally, the requested url was the following:
/index.php/apps/deck/api/v1.0/boards
This means your capabilities endpoint isn't the problem here, since it is requested before any boards. You can try to curl the boards endpoint as well and might get the same thing as the app.
Sometimes errors like this also happen, when you never visited the actual web app before connecting our android app to it. Worth a try, just in case
I'll try these as well.
This issue respects the following points:
Describe the bug
When I try to add my account I receive an error that traces back to a 404 from the app trying to access the deck API at localhost.
Steps:
I tested /ocs/v2.php/cloud/capabilities?format=json with curl and I get a normal response - no references to localhost
I'm just not sure where the localhost url is coming from.
I attached the stack trace below.
Expected behavior
Expected behavior would be that the app queries my external Nextcloud url (which the primaray Nextcloud app is configured to use) and the sign in would complete successfully.
Deck Android version
1.24.1
Deck server version
1.13.1
Nextcloud Android version
3.29.2
Nextcloud version
29.0.4
Device
Samsung Galaxy Note 20 Ultra
Android Version
13
App Store
Stacktrace