Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add cospend project (cannot find server) #68

Open
Narfinger opened this issue Nov 26, 2023 · 19 comments
Open

Cannot add cospend project (cannot find server) #68

Narfinger opened this issue Nov 26, 2023 · 19 comments

Comments

@Narfinger
Copy link

I tried everything to add a cospend project into this app but it always reports that it cannot find the server.
The QR code gives me a giant red X and the other ones say that they cannot find the server.
I am using nextcloud on a local server with a self-signed certificate but I also tried with a let's encrypt certificate.
Is there a way to get better error messages?

@CapitolRadio
Copy link

Similar issue for me. The QR code doesn't register at all though...
When I try to add project manually, I can't click 'Add Project' button (it is greyed out).

@derTunnel
Copy link

Same here

@azertylr
Copy link

azertylr commented Feb 3, 2024

hello, same here
how to add a cospend project please?

@tiptoptom
Copy link

Do you know the app and cospend version? Did the problem start with an update of the app/cospend?

@tiptoptom
Copy link

Looks like this problem:
julien-nc/cospend-nc#258

@azertylr
Copy link

azertylr commented Feb 11, 2024

I managed to solve this issue this way:
-use a subdomain for nextcloud (nextcloud.domain.tld) and not a subfolder
-copy the link on cospend
-paste it in the app
-put a random value for the password

@tiptoptom
Copy link

-copy the link on cospend

Which link do you mean exactly? Does it look like this?
https://nextcloud.xxx.com/apps/cospend/s/xxx

-put a random value for the password

Really a random value? Did you even set a password?

@azertylr
Copy link

Which link do you mean exactly? Does it look like this? https://nextcloud.xxx.com/apps/cospend/s/xxx

yes that's correct, copy this link in iOS

Really a random value? Did you even set a password?

then use the "past link" function in PayForMe: it will complete server url & username
and fill the password field with a random value

it worked for me

@tiptoptom
Copy link

Well, sometimes that seems to work, sometimes it doesn't.

@maxammann
Copy link

maxammann commented Mar 3, 2024

The issue behind this is rate limiting in Nextcloud I believe. I also got some 429 HTTP errors when vising the shared link in my browser. (after the PayForMe was used)

@maxammann
Copy link

Setting:

'auth.bruteforce.protection.enabled' => false,

works around the issue.

@Hustenbonbon
Copy link
Collaborator

Hi all, thanks for providing the information!
By now I work in a very different setting and it gets more and more complicated to find the time to maintain PayForMe, but all your feedback helps prioritizing it.

I will try to find the reason the Cospend communication is completely broken and fix it as soon as possible. Maybe @julien-nc can point me in the right direction?

@Hustenbonbon
Copy link
Collaborator

Question to everyone:
Would you be fine with completely giving up the deprecated login method in favor for a nextcloud login?

@maxammann
Copy link

Question to everyone:
Would you be fine with completely giving up the deprecated login method in favor for a nextcloud login?

Do you mean removing link sharing and requiring a login? That would work for me.

@tiptoptom
Copy link

Would you be fine with completely giving up the deprecated login method in favor for a nextcloud login?

For me, it's a big advantage that not all my friends who want access to the project have to create an account first. I would therefore like this option to continue to exist (if that's what you meant).

@azertylr
Copy link

azertylr commented Mar 6, 2024

For simplicity, cannot we use the new official sharing link? it doesn't need a password or a nextcloud account.
Like: https://domain.tld/apps/cospend/s/dc19853041ebc04f444293459e2a485ce

The second option would be to work like MoneyBuster with a nextcloud account to retrieve/create new project automatically

@maxammann
Copy link

For simplicity, cannot we use the new official sharing link? it doesn't need a password or a nextcloud account.
Like: https://domain.tld/apps/cospend/s/dc19853041ebc04f444293459e2a485ce

That is what is used right now and there seems to be an issue on how PayForMe uses that. There is also authentication involved and somehow PayForMe is triggering the bruteforce detection.

@azertylr
Copy link

azertylr commented Mar 6, 2024

yes it seems that it is trying to connect in loop, and not only when we validate

@tiptoptom
Copy link

I think this is the place where the error message is defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants