Red cross for a contact who had a DNS problem or who has migrated of XMPP server - to solve in the client, we need to close the client and reopen
Dear @psi-im team, @psi-plus team, @Ri0n, @Vitozz, @tehnick,
A contact (admin of his XMPP server) had a problem, a red cross for him:
Presence Error: Remote server not found.
A remote server or service specified as part or all of the JID of the intended recipient does not exist.
Server-to-server connection failed: unable to resolve service
Screenshot:
- https://i.ibb.co/g656KcW/psi-red-cross-vcard-status-tab.png
He had a DNS problem and he has solved it but always a red cross in the XMPP client.
The solution is to close the client and start a new time.
After it, there is no problem, no red cross in roster before the contact name.
EDIT: New example in 2024:
- https://i.ibb.co/sJ8NHp1/psi-bug-red-cross-2024.png
Presence Error: Remote server timeout.
A remote server or service specified as part or all of the JID of the intended recipient (or required to fulfill a request) could not be contacted within a reasonable amount of time.
Server-to-server connection failed: host-unknown (This host does not serve domain.tld)
Linked to:
- https://github.com/psi-im/psi/issues/445
- https://github.com/psi-im/psi/issues/247
- https://github.com/psi-plus/main/issues/666
I don't understand how one should reproduce it. But I guess you are talking about this piece of code
else if (!index.data(ContactListModel::AuthorizesToSeeStatusRole).toBool() && s == XMPP::Status::Offline)
s = STATUS_NOAUTH;
This baically means the contact didn't send updated status and we can't do anything here. It's a problem of the other side.
I don't understand how one should reproduce it.
For example:
- Launch any xmpp server on localhost.
- Register new account in it.
- Add this temporary account to contacts list in your primary account.
- Stop xmpp server on localhost.
- Restart xmpp client.
- You should see this temporary contact with red crosshair icon.
- Launch xmpp server on localhost.
- You should still see this temporary contact with red crosshair icon.
Personally I am not interested in this issue and not planning to check algorithm described above.
@Ri0n, @tehnick, @Vitozz: Today, a contact has migrated this XMPP server, I have a red cross and this error:
Presence Error: Remote server not found.
A remote server or service specified as part or all of the JID of the intended recipient does not exist.
Server-to-server connection failed: unable to resolve service
Screenshot:
- https://i.ibb.co/g656KcW/psi-red-cross-vcard-status-tab.png
I confirm that the problem is always here. I can join a MUC Room on this XMPP server.
I still think it's not a bug. so let's just close it
@Ri0n: It is a bug, not new... There is no DNS check/refresh in the client.
Wrt dns problems on client side it's clearly impossible. İt's cleaned up and resolved again every time.
Example in a screenshot:
- https://i.ibb.co/sJ8NHp1/psi-bug-red-cross-2024.png
@jkarneges: Can you look this JDNS bug?
Thanks in advance.
Linked to:
- https://github.com/psi-im/psi/issues/247
- https://github.com/psi-plus/main/issues/666