In seed.js, must /register main appservice user with homeserver before trying to upload avatar #12

Closed
opened 2023-10-16 00:37:59 +00:00 by cadence · 3 comments
Owner

Synapse automatically registers the main appservice user for me, but this is Synapse being special and this behaviour is not guaranteed by the spec nor implemented by Conduit.

The first step of seed.js should be attempting to register the main appservice user. It's OK if it already exists.

This would also be a great chance to check if the homeserver connection & login actually work, which is a frequent stumbling point of setting up appservices.

Synapse automatically registers the main appservice user for me, but this is Synapse being special and this behaviour is not guaranteed by the spec nor implemented by Conduit. The first step of seed.js should be attempting to register the main appservice user. It's OK if it already exists. This would also be a great chance to check if the homeserver connection & login actually work, which is a frequent stumbling point of setting up appservices.
Author
Owner

Done in 762e482 by adding a register() call to seed.js.

Done in 762e482 by adding a register() call to seed.js.
Author
Owner

Also need to detect this when Conduit is the server. I was sent a private message with Conduit's special error code. I need to add a condition for it.

Also need to detect this when Conduit is the server. I was sent a private message with Conduit's special error code. I need to add a condition for it.
cadence reopened this issue 2023-10-16 22:13:15 +00:00
Author
Owner

Conduit's errcode is M_USER_IN_USE because it's a good boy. Condition added in 4dcdd02.

Conduit's errcode is M_USER_IN_USE because it's a good boy. Condition added in 4dcdd02.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cadence/out-of-your-element#12
No description provided.