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
If you run Electric and it can't setup things with the provided db and then you query a shape, we currently respond "stack not ready".
This isn't a very helpful response.
@samwillis has been doing nice work on validating dbs for cloud that we should also port here.
Dbs can fail for three reasons:
Connecting issues e.g. domain not found (typo perhaps), the connection was blocked by a firewall, then at pg if the username or password is incorrect or the db doesn't exist. When these happen, we should just store the error and return it to shape requests.
user doesn't have REPLICATION role to setup the publication slot — return nice error about this & link to docs on creating a user with the right role
the db doesn't have logical replication enabled — return nice error and link to docs on enabling logical replication
The text was updated successfully, but these errors were encountered:
Regarding the stack not ready, Electric has a health check endpoint and any requests for shapes while the service is not healthy will return a 5xx response (e.g. the stack not ready one) - I agree that we want to enrich the messaging but ultimately these are requests made to an unhealthy service.
If you run Electric and it can't setup things with the provided db and then you query a shape, we currently respond "stack not ready".
This isn't a very helpful response.
@samwillis has been doing nice work on validating dbs for cloud that we should also port here.
Dbs can fail for three reasons:
REPLICATION
role to setup the publication slot — return nice error about this & link to docs on creating a user with the right roleThe text was updated successfully, but these errors were encountered: