Poor error messages on WebSocket connection errors.
Categories
(Core :: Networking, defect, P2)
Tracking
()
People
(Reporter: emilio, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
In bug 2016917 went in a bit of a chase because some code in a government website was erroring out. A WebSocket was connecting to localhost, but it was using a self-signed cert.
First of all, the console error when this happens was kind of bad:
Firefox couldn't connect to
wss://127.0.0.1:...
The WebSocket error event didn't have any useful information either. DevTools network panel did show a SEC_ERROR_UNKNOWN_ISSUER. But afaict there's no good way to look at what certificate was from there. So I didn't know how to proceed.
It was only after :kershaw suggested going to https://127.0.0.1:... and checking the error page that I could make some progress (obvious in retrospect I guess).
Would it be possible to expose some more info of the certificate and such when this happens? Ideally on the console error, but at least on the network panel seems like it'd be useful? Maybe there's a way of looking at it and I don't know it...
Description
•