-
Notifications
You must be signed in to change notification settings - Fork 190
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
Error resolving broadcast hostname being swallowed #716
Comments
/bounty 50 |
💎 $50 bounty • Permit.ioSteps to solve:
Thank you for contributing to permitio/opal! Add a bounty • Share on socials
|
/attempt #716
|
/attempt #716 Options |
💡 @TheVixhal submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Hey, @TheVixhal, we already assigned @daveads to this ticket |
Ooh, sorry😅, I didn’t check earlier. BTW, I learned a lot while fixing this bug. At first, I tried many things, but in the end, I realized the repo was using an older version of fastapi_websocket_pubsub. I felt like I should’ve checked that first. Let me know if there's anything else I can assist with. |
Describe the bug
We had a deployment of opal-server that we'd typoed the broadcast URI. We were seeing websockets disconnect errors in the clients, but no errors server side, so no clues it was the broadcast URI.
After turning debug logging on for the server, I spotted the following output:
Based on the 4th line, I went to look at
fastapi_websocket_pubsub/event_broadcaster.py:245
and saw it was referencing the broadcast URI, at which point I double checked ours and saw the typo.What I believe to be a bug is that the error is being swallowed, and should probably be elevated to an
ERROR
level log for visibility.To Reproduce
Set the broadcast URI to an invalid value - in our case, a postgres URI with a hostname that didn't resolve.
Logs: se616-opal-opal-server-545c454db-hx2nc.log
Expected behavior
A clear error level log to indicate that the broadcast URI could not be resolved
OPAL version
The text was updated successfully, but these errors were encountered: