Bug: micropython-lib/python-ecosys /aiohttp "MQTT over Websocket" #16329
Unanswered
jomasnash
asked this question in
Libraries & Drivers
Replies: 1 comment 1 reply
-
I hope they will fix it soon. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a bug in aiohttp. The problem is if you want to supply a custom header in a ClientSession that connects to a websocket, the header is ignored.
for example:
Since the first line in "async def handshake(self, uri, ssl, req):" is "headers = {}", the custom header is lost.
I found this bug when developing a asyncio "MQTT over Websocket" client. I could only connect to the hivemq broker.
All other "free online" brokers (for example "ws://test.mosquitto.org:8080") refused to connect because of missing header entries.
I have created an issue for this, see: micropython/micropython-lib#940
Beta Was this translation helpful? Give feedback.
All reactions