Replies: 2 comments
-
By the way, |
Beta Was this translation helpful? Give feedback.
-
Aha! I figured it out. Above, I actually provided minimal code I thought was important. But, I started stepping through the source of Then I remembered... I had done this:
I commented that out, and |
Beta Was this translation helpful? Give feedback.
-
When I do as suggested in the docs and
raise ConnectionRefusedError('some message')
to refuse an unauthenticated connection, all that happens is the Flask logger prints the exception and the connection proceeds as normal. I have no special error handlers installed on the Flask app.Here is my code:
server:
client (javascript):
Expected server log output:
Actual server log output:
Expected client log output:
Actual client log output:
And then the client can use the connection.
The setup seems incredibly simple, yet it's not working as expected. Is this a bug? If not, what am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions