-
Notifications
You must be signed in to change notification settings - Fork 136
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
Live view camera not displayed because of web socket error 'ws close 1006' #277
Comments
A dump from
|
Hmm, you're reminding me that I'm overdue for making a new release. Current HEAD gives a better error message than Do either of these two ideas from the version 0.7.5 troubleshooting guide help? https://github.com/scottlamb/moonfire-nvr/blob/v0.7.5/guide/troubleshooting.md#live-stream-always-fails-with-ws-close-1006 Also, I don't remember if it gives a better error message in this case or not, but the live view only works if the
In that last screenshot with the |
It did not, I have the sub-stream configured and set to recording. Recording is working fine, I can see those both for the main and sub streams.
Confirmed that the cookie |
I think the next step might be to try with the updated code that has better error messages. I'll prepare a new release within the next day or two.
That seems to be a separate bug; those fields aren't being updated on my installation either. 😞 Filed #282. |
|
I upgraded from I say it's interesting because the live view now does work as expected on my laptop, both in Chrome and Safari, also works just fine on my phone both on DuckDuckGo and Chrome. I cleared all Firefox cache, logged in/out, but no luck. For some reason it does not want to work there (still investigating). Tailing the logs (
and in the Firefox developer console I get:
On additional good notes,
[1] upgrade process taken:
|
Here's some additional details Firefox's dev console report:
![]() |
Huh. A couple things puzzle me there:
I'll try doing a little testing in Firefox and see if I can reproduce... |
Did a little reading. I think we may need a |
I'd hoped this would help: diff --git a/ui/public/index.html b/ui/public/index.html
index ca94e9b..73808e0 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -7,6 +7,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
+ <meta http-equiv="Content-Security-Policy" content="media-src 'self' blob:">
<link
rel="apple-touch-icon" but no. I can certainly break the page more with other values of this (pseudo-)header; e.g. changing |
Oh, the I'm feeling stuck on this security error, though. :-( |
Describe the bug
The camera video is not displayed in the live view option, instead the browser displays a
ws close: 1006
error message after the camera of choice is selected.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The camera live video to be displayed.
Screenshots
Server (please complete the following information):
docker ps
+docker images
Camera (please complete the following information):
Desktop (please complete the following information):
Additional context
The error seem related to a failure in establishing a connection below are the errors displayed in the Firefox developer tools. Note that this isn't browser specific, I've also attempted it on Chrome without luck.
errors:
![Screen Shot 2023-07-03 at 10 29 44 AM](https://private-user-images.githubusercontent.com/1845004/250629647-fcb87255-170e-407b-9b31-c0e3c32ba66f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMjg2MjAsIm5iZiI6MTcyMjEyODMyMCwicGF0aCI6Ii8xODQ1MDA0LzI1MDYyOTY0Ny1mY2I4NzI1NS0xNzBlLTQwN2ItOWIzMS1jMGUzYzMyYmE2NmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMDA1ODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGJmZjc2OWJiNWIwZjBiMDVkMzYzYzE0ODM3NzRlOGFkNzIxMjRjZGNlZTEwOTBjYTRiNGM5YTllNmYzN2UxMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.csJTdDlXbQMwNqf9qv7JU-ocbzGvAY6EgUB9jJ9oquc)
GET: stack trace
![Screen Shot 2023-07-03 at 10 29 30 AM](https://private-user-images.githubusercontent.com/1845004/250629674-8829c6f7-5537-4db6-8cdd-84b7b1cb77dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMjg2MjAsIm5iZiI6MTcyMjEyODMyMCwicGF0aCI6Ii8xODQ1MDA0LzI1MDYyOTY3NC04ODI5YzZmNy01NTM3LTRkYjYtOGNkZC04NGI3YjFjYjc3ZGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMDA1ODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDc2YTE3NGVkN2FiZDI2OTE5NDU2MTQ3NGE3OWNhYjliZWVjNTZlZGQzZjFiMjUwMzRhODM0MjYwZTc2ZTIwOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Hue4OtRj2n3S-QpEXmK_L79oajv-W2iTTUGAwrVHh1Y)
The text was updated successfully, but these errors were encountered: