prose-im / prose-app-macos

Prose macOS application. XMPP client for team messaging.
https://prose.org/downloads
Mozilla Public License 2.0
58 stars 3 forks source link

Login fails with `The operation couldn’t be completed. (ProseCoreFFI.ClientError error 0.)` #132

Open neilalexander opened 1 year ago

neilalexander commented 1 year ago

The username and password are fine and the log reports a successful login (as does another logged in client) but this error appears instead.

Xcode version 14.3.1 (14E300c) macOS version 13.4 (22F66) Git commit 1cbe0fd

Screenshot 2023-06-07 at 15 58 18
2023-06-07 15:57:51.672876+0100 Prose[33129:11883916] [ffi] Migrating database from version 3 to 3…
2023-06-07 15:57:51.673700+0100 Prose[33129:11883916] [ffi] Waiting for connection…
2023-06-07 15:57:51.673847+0100 Prose[33129:11883916] [ffi] Starting XMPP polling thread…
2023-06-07 15:57:51.677929+0100 Prose[33129:11883916] [ffi] Connecting to server via libstrophe…
2023-06-07 15:57:52.092961+0100 Prose[33129:11883916] [ffi] Established libstrophe connection after 414.98ms
2023-06-07 15:57:54.245722+0100 Prose[33129:11883955] [ffi] Connection established after 2.57s
Connected BareJid(node: Optional("xxx"), domain: "xxx.xxx")
2023-06-07 15:57:55.223661+0100 Prose[33129:11882949] [default] CGSWindowShmemCreateWithPort failed on port 0
nesium commented 1 year ago

Hey @neilalexander. Thanks for trying Prose. I'm finishing up another task ATM. I'll look into this issue afterwards and let you know.

neilalexander commented 1 year ago

Please do let me know if I can provide any more information or test further!

RemiBardon commented 1 year ago

Thank @neilalexander for trying the app! I think your issue is the same as mine, reported in https://github.com/prose-im/prose-wrapper-swift/pull/2 and https://github.com/prose-im/prose-app-macos/issues/129.

You can try what @nesium proposed in https://github.com/prose-im/prose-app-macos/issues/129#issuecomment-1568407702, but I believe you already did seeing your log is more verbose than the one I had.

I didn't take the time to dig into the issue either, but I can try to reproduce if needed.

RemiBardon commented 1 year ago

@neilalexander The issue was fixed, can you try logging in again using the latest commit on master?

neilalexander commented 1 year ago

The ProseCoreFFI.ClientError is gone now, but replaced with a new error:

XMPP error: XMPPError { kind: Some(Cancel), text: Some("No module is handling this query"), status: Some(ServiceUnavailable) }

Should I be able to log in using a normal XMPP account?

nesium commented 1 year ago

Hey! Sorry for the confusion.

I'm assuming that you might be connecting against a server that doesn't support vCard4 Over XMPP (hence the error message).

We're not yet at a point where we have fallbacks in place when a server doesn't support certain protocol extensions. I guess we’ll have specific requirements for a server to work with the Prose client, especially since it needs to function in a workplace setting, but alas, we haven’t documented these yet. So this is all very early stages.