ITADN

Cloudflare preventing ement connections?

#326Openkrachynski 创建于 2025-06-18
bug
K
krachynskicommented
### OS/platform Fedora Linux WSL on Windows 11 ### Emacs version and provenance 30.1 Fedora provided package. ### Emacs command M-x em-con ### Emacs frame type tty ### Ement package version and provenance 0.16 via elpa (I think) ### Actions taken I installed ement.el on a fresh copy of emacs and configured it. I also have rust and jabber configurations present; I think those were installed after. ### Observed results I tried joining the room on matrix to ask about this, but it's invite only right now. I'm also not sure if this should be reported under plz or here. I'm starting here. For the last while, any attempt to connect ement to matrix.org results in an error from Cloudflare which feels like ement should be doing a retry to answer cloudflare's response The error returned is ```lisp Error running timer ‘plz--respond’: (ement-api-error "Ement: Unrecognized network error" #s(plz-error nil #s(plz-response 2 401 ((date . "Wed, 18 Jun 2025 16:01:13 GMT") (content-type . "application/json") (cf-ray . "951c010bfa9feb57-SEA") (synapse-trace-id . "ba676ba336519886") (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") (access-control-expose-headers . "Synapse-Trace-Id, Server") (permissions-policy . "interest-cohort=()") (cf-cache-status . "DYNAMIC") (server . "cloudflare")) "{\"errcode\":\"M_UNKNOWN_TOKEN\",\"error\":\"Token is not active\",\"soft_logout\":false}") nil)) ``` While I have `'(ement-save-sessions t)`, I cannot find any saved session on my system. ### Expected results I expected to be asked for my credentials. ### Backtrace ```elisp The backtrace includes multiple lines of this error, but I don't actually know how to copy that out of emacs-nw in Windows Terminal Error running timer ‘plz--respond’: (ement-api-error "Ement: Unrecognized network error" #s(plz-error nil #s(plz-response 2 401 ((date . "Wed, 18 Jun 2025 16:01:13 GMT") (content-type . "application/json") (cf-ray . "951c010bfa9feb57-SEA") (synapse-trace-id . "ba676ba336519886") (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") (access-control-expose-headers . "Synapse-Trace-Id, Server") (permissions-policy . "interest-cohort=()") (cf-cache-status . "DYNAMIC") (server . "cloudflare")) "{\"errcode\":\"M_UNKNOWN_TOKEN\",\"error\":\"Token is not active\",\"soft_logout\":false}") nil)) ``` ### Etc. _No response_
0 条评论