-
Notifications
You must be signed in to change notification settings - Fork 44
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
ement-room-send-reply, ement-room-send-message signal "400: User is not hosted on this homeserver" #84
Comments
Hi Nic, I've never heard of that error before. Are you using the matrix.org homeserver? If not, I'd guess it's a problem with the homeserver. |
I am. Haven't had much time to dig into this, but I'm still able to reproduce. Debugger entered--Lisp error: (ement-api-error "400: User is not hosted on this homeserver")
signal(ement-api-error ("400: User is not hosted on this homeserver"))
ement-api-error(#s(plz-error :curl-error nil :response #s(plz-response :version 2 :status 400 :headers
((date . "Sun, 21 Aug 2022 06:13:33 GMT")
(content-type . "application/json")
(synapse-trace-id . "68da9f2aba8f81e6")
(cache-control . "no-cache, no-store, must-revalidate")
(access-control-allow-origin . "*")
(access-control-allow-methods . "GET, HEAD, POST, PUT, DELETE, OPTIONS")
(access-control-allow-headers . "X-Requested-With, Content-Type, Authorization, Date")
(permissions-policy . "interest-cohort=()")
(cf-cache-status . "DYNAMIC")
(expect-ct . "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"")
(server . "cloudflare")
(cf-ray . "73e139344b6f187d-EWR"))
:body "{\"errcode\":\"M_UNKNOWN\",\"error\":\"User is not hosted on this homeserver\"}")
:message nil))
plz--sentinel(#<process plz-request-curl<1>> "finished\n")
ement-room-read-string("Send message (Emacs): " nil nil nil inherit-input-method) And searching for that error message only turned up the following: I'll look into this more when I have time. |
That seems bizarre. Here are the only two suggestions I can think of:
Also, to clarify, does this happen when using any other client with that account? |
Added the
Element wants me to use a unique email per matrix.org account.
I have not encountered the issue in Element's web or Android front-end. |
Ok, please let me know when you have more information. |
Still haven't had time to look into this, but I did have time to work around it in case anyone else bumps into this: (define-advice ement-api-error (:around (fn &rest args) "ignore-not-hosted-error")
"Ignore a spurious(?) error from Matrix home server."
(condition-case err
(apply fn args)
((error)
(unless (string-match-p "User is not hosted on this homeserver" (cadr err))
(signal 'ement-api-error (cdr err)))))) |
Of all the references I can find to that error with Google, only one code path involves anything Ement does: sending typing notifications. But, of course, we don't send typing notifications for users other than ourselves (which is the case in which that error is sent), so I don't know how that error could be caused. Are you using Pantalaimon? |
I am not. |
I am stumped, then. :) |
This appears to be explained by #114. |
Forgive me if this is expected behavior, I'm not too familiar with the Matrix API.
When sending messages I consistently get the following backtrace:
I'm still able to send messages, but when running with a non-nil
toggle-debug-on-error
this gets in the way often.The error is signaled regardless of what message I am responding or composing.
The text was updated successfully, but these errors were encountered: