Some instances of this in the logs is normal, the websocket connection has a time limit on the loki side which forces a reconnect.
If it's happening all the time and the canary can never connect, make sure if you have a reverse proxy in your setup that it is configured to support http->websocket upgrading.
Regards,
Ed