sp-engineering / frigate-viewer

GNU General Public License v3.0
14 stars 5 forks source link

Since last update nothing is working #23

Open AxelHoss opened 1 month ago

AxelHoss commented 1 month ago

Hi, since your last update (Oktober 2nd) i cant view any cameras. Just when i open the app i can see my camera for a millisecond. Log doesnt say anything. Im the only one with this issue? Homepage working well

piwko28 commented 1 month ago

Can you send some screenshots? What kind of device?

AxelHoss commented 1 month ago

Screenshot_2024-10-08-21-18-32-480_com android settings Screenshot_2024-10-08-21-17-31-314_com frigateviewer Screenshot_2024-10-08-21-17-22-116_com frigateviewer Screenshot_2024-10-08-21-16-54-012_com frigateviewer

piwko28 commented 1 month ago

Thanks for sharing. Currently I have no possibility to check it on Hyper OS. Could you please clear app data (or uninstall and install again) and try to fill the settings again? If it does not help - could you try to use demo server, just for test?

AxelHoss commented 1 month ago

Demo Server is working. Ive deleted the app an reinstalled. Nothing changed. Im the only one with this issue?

piwko28 commented 1 month ago

I have no knowledge about similar issues. Do you use authorization? Http or https? I'll try to integrate an error reporting with next release to have better overview what happened.

AxelHoss commented 1 month ago

Http

piwko28 commented 1 month ago

I made a test platform and it's working as intended. The error occurs when I provide wrong server data, in example password, but then nothing works including Storge info. Have you tried with other phone model? Any chance to share your Frigate instance for one day to check the reason? If so, please contact me via email.

piwko28 commented 1 month ago

Just to be sure: did you left "path" completely empty?

AxelHoss commented 1 month ago

path is empty. Btw, the german translation here is wrong. Should be "Pfad" and not "Pfed". Tried another hyperOs (have just hyperOs) and got the same issue. Whould you try it via wireguard?

piwko28 commented 1 month ago

No, I haven't. Wireguard shouldn't have impact on it. Thanks for the remark with the translation, it was corrected in newest release.

gulo101 commented 1 month ago

I am experiencing the same issue. When I pull down to refresh, the cameras flash for a millisecond and then it's just a blank screen. There are no events either.

piwko28 commented 1 month ago

I found an issue: Newly entered login credentials were only used after closing and reopening the app, not immediately after saving the settings. I fixed it in newest release 14.2.1, and it potentially fixes the issue. Please let me know if you still encounter the issue.

gulo101 commented 1 month ago

I updated to 14.2.1 but still seeing the same issue.

AxelHoss commented 1 month ago

Same here

piwko28 commented 4 weeks ago

I fixed an issue related to authorization for those who use self-signed certificates.

@AxelHoss you mentioned that your instance uses http though. Are you able to write an instruction how you configured authorization? I want to reproduce your case.

AxelHoss commented 4 weeks ago

I dont have to log in. There is no authoriztion

pixielark commented 3 weeks ago

Hi piwko28 I think the API access problem is caused by the auth token not attached to the request cookie properly (and make sure you are on the latest version of frigate when you test/debug this as this frigate change is pretty recent)

error log from frigate side

2024-10-19 10:21:10.560320071  172.19.0.121 - admin [19/Oct/2024:10:21:10 -0700] "GET /api/config HTTP/1.1" 401 179 "-" "okhttp/4.9.2" "2604:4080:redacted"

2024-10-19 10:21:10.603856482  172.19.0.121 - admin [19/Oct/2024:10:21:10 -0700] "GET /api/config HTTP/1.1" 401 179 "-" "okhttp/4.9.2" "2604:4080:redacted"

I do not see any log on frigate side that indicate the viewer is trying to retrieve auth token, so I checked the auth code here, and looks like there is no action from the viewer to call the frigate login API to retrieve the auth token and use it for all subsequent API access

entire auth workflow can be found here

My guess why you did not encounter the problem is because you are accessing port 5000 for API access but not 8971 which is guarded by auth? Or you are on early version of frigate

You will need to attach frigate_token in the cookie section of the request for API access to work. frigate_token is the default value according to the reference doc and it is configurable, which means you might need to add a section on UI to match it as well

and I would guess the cookie will need to be attached somewhere around here

hope this can help :smile:

piwko28 commented 3 weeks ago

@pixielark that helps a lot! I had no idea that Frigate introduced own authentication mechanism! I based on reverse proxy chapter, where they described basic auth - and the Frigate Viewer uses basic auth. Thanks for the remark, I'll analyze the Frigate authentication docs.

piwko28 commented 1 week ago

Authorization is done and new version released. Going back to original issue with no cameras: @gulo101 which phone model and Android version do you use?

gulo101 commented 1 week ago

Authorization is done and new version released. Going back to original issue with no cameras: @gulo101 which phone model and Android version do you use?

I am using Pixel 6 Pro. I was actually running Android 13 and last week I had to get a new phone (also Pixel 6 Pro) which came with Android 14. Same issue on both - the app opens, I see the thumbnails for last event for all the cameras for half a second, and then it just goes blank.

MYeager1967 commented 1 week ago

I'm trying to connect through NGINX. What settings do I need to add where in order to get this to work? I have NGINX pointing to port 8971....