-
Notifications
You must be signed in to change notification settings - Fork 28
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
atproto firehose throws errors #1059
Comments
Ugh, thanks, not ideal. Will look. |
I've made some significant infra improvements over the last couple days, including to the (outgoing) firehose's stability, and I'm not seeing it serve these 502s any more. @mackuba hopefully you're seeing the same thing now? |
Could it be served by something before your app (Nginx or whatever) when it can't get a response from your app? |
Yup, definitely. It currently restarts about once a day (for reasons 😐), and any open connections when that happens get 502ed. Looks like you caught it at one of those restarts. Try again? Apart from those, it's not serving many/any other 502s as far as I can tell. |
Hmm… looks good at the moment, but I'll try a few more times at different times :) |
Btw, what's the buffer size for your firehose? It looks like it goes back <24h? |
5000 seqs, but now that it's behaving better I should probably drop that limit and allow full history. |
Hi again! I fixed #1091 today, which should stop the daily restarts, so I think these 502 errors should be fully gone now. Websocket subscriptions will still close with HTTP 101 after 1 hour, but that seems reasonable, clients should hopefully handle that and reconnect ok. Let me know if you still see this problem! |
When trying to connect to the firehose and read some events from it, I sometimes get errors, which look for me like this:
This is even after I started receiving some data - events are coming, then they stop, nothing happens for a bit, and then error, maybe more errors, and then after a while it continues printing events.
I inspected the details of the error, and it looks like the server is sometimes returning status 502:
The text was updated successfully, but these errors were encountered: