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
I ran the example for "How do I implement a health check?" and got the error AttributeError: 'bytes' object has no attribute 'encode'. Did you mean: 'decode'?
I took a look and found that ServerConnection.respond expects the second parameter text to be a str. It then passes it to ServerProtocol.reject, which also expects a string and calls text.encode() to convert it to bytes.
The example passes a bytes string to ServerConnection.respond, causing this issue.