-
Notifications
You must be signed in to change notification settings - Fork 7
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
Assertion Error on Pico W (RP2040) #6
Comments
@AngryChihuahua04 did you ever find a solution to this? Im currently stuck with the same problem |
That means the server gave a 400 bad request response. import adafruit_logging as logging
LOGGER = logging.getLogger("websockets.client")
LOGGER.setLevel(logging.DEBUG) It would be interesting to know what server it is, if it's publicly accessible that would help me test it. If it's a server you are running, you could try to get some debug information on why it's not happy. It might not like the Origin header, or there's something else. I noticed that it does not give the proper scheme: it always uses
|
@Neradoc Thanks for your fast response! the server expected a connection on wss and port 8002 but I was trying to connect with ws on 8001. Thanks in advance :) |
Btw, connecting to the TV with Postman using WSS works. It seems to just ignore the invalid certificate, I get no warning |
Can you paste here the full error ? (The whole stacktrace with the lines and files and stuff). |
this is all I have unfortunately.. but as I said, I think that's not really a bug but more a feature. edit: using micropython instead I can use a very basic implementation that seems to work ok. I'd rather use CircuitPython tho. This is the working implementation |
Hi there!
Was testing this library with the new Pico W, but I keep getting an error: "AssertionError: b'HTTP/1.1 400 BAD REQUEST'". It looks like the Micropython library had this issue and was fixed and I was wondering if there was a fix for this CircuitPython library?
Any and all help is appreciated!
The text was updated successfully, but these errors were encountered: