You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
dklimpel opened this issue
Apr 12, 2023
· 1 comment
· Fixed by #15428
Labels
A-WorkersProblems related to running Synapse in Worker Mode (or replication)T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
The text was updated successfully, but these errors were encountered:
dklimpel
changed the title
/_matrix/client/(r0|v3|unstable)/refresh endpoint is not valid on worker/_matrix/client/(r0|v3|unstable)/refresh endpoint is not valid on workers
Apr 12, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-WorkersProblems related to running Synapse in Worker Mode (or replication)T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
I assumed that the endpoint
/_matrix/client/(r0|v3|unstable)/refresh
can be routed to workers.Why?
synapse/synapse/rest/__init__.py
Line 100 in 253e86a
synapse/synapse/rest/client/login.py
Lines 671 to 674 in 253e86a
But it cannot routed to workers.
add_refresh_token_to_user
is part ofRegistrationStore
and notRegistrationWorkerStore
.Steps to reproduce
curl -X POST http://matrix.localhost/_matrix/client/v3/refresh -d '{"refresh_token": "syr_xxxx"}'
Homeserver
another homeserver
Synapse Version
1.78.0
Installation Method
Other (please mention below)
Database
PostgreSQL
Workers
Multiple workers
Platform
Kubernetes
Configuration
No response
Relevant log output
Anything else that would be useful to know?
The documentation for workers is correct. The endpoint is not listed there.
I am not sure if
add_refresh_token_to_user
can be simply moved toRegistrationWorkerStore
because there is an id generatorsynapse/synapse/storage/databases/main/registration.py
Lines 2238 to 2251 in b406573
The text was updated successfully, but these errors were encountered: