BobStrogg / teslacam-browser

A very simple TeslaCam browser
Creative Commons Zero v1.0 Universal
237 stars 32 forks source link

[Linux] Range Error: Serving file listing from /media/DBBA-9C1E//TeslaCam/RecentClips #27

Open Haun1400 opened 5 years ago

Haun1400 commented 5 years ago

Hello! I started going through the code and looking at the existing issues looking to see if anyone else is running into this issue. I'm getting the following error:

Opening browser at http://localhost:8088 Serving file listing from /media/DBBA-9C1E//TeslaCam/RecentClips RangeNotSatisfiableError: Range Not Satisfiable at SendStream.error (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:270:31) at SendStream.send (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:670:19) at onstat (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:729:10) at FSReqWrap.oncomplete (fs.js:155:5) RangeNotSatisfiableError: Range Not Satisfiable at SendStream.error (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:270:31) at SendStream.send (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:670:19) at onstat (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:729:10) at FSReqWrap.oncomplete (fs.js:155:5) RangeNotSatisfiableError: Range Not Satisfiable at SendStream.error (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:270:31) at SendStream.send (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:670:19) at onstat (/opt/TeslaCam Browser/resources/app.asar/node_modules/send/index.js:729:10) at FSReqWrap.oncomplete (fs.js:155:5)

I was thinking this was most likely related to the Chrome H256 issues, however since I'm on linux I can't switch to edge or safari. That being said, I couldn't help but notice the "//" in the file path and thought that might be the issue. I can troubleshoot further as needed :)

BobStrogg commented 5 years ago

Thanks for looking into this! Honestly I’ve not tested it much on Linux yet. Do all videos fail to play?

In theory the “Browse” button in the app should still work, and then you could copy the URL into a different Linux (non-Chrome) browser? Or is it likely H-265 isn’t supported by any Linux browser?

Haun1400 commented 5 years ago

Anytime! I'm not familiar with Electron apps so I didn't do too much digging. I'm also on mobile at this point in time so I'm going based on memory. Basically the app doesn't work in any form. It tries to load the files, but sits there "loading" in the main app panel, chrome, and Firefox. I do seem to get a 416 error in chrome. I plan to run it on my Windows machine just to ensure it's not something wrong with the files/usb drive.

Ran it as root and encountered the same issue.

My initial thought is the path is wrong as it has two slashes in it. I'll see if I can make some time tomorrow to locally modify the code and run the app, but again I'm not familiar with Electron so I might not have the cycles tomorrow to get to it.

Thanks for the fast response, let me know if you have any other questions that might help identify the issue!

On Mon, Jun 10, 2019, 9:52 PM Chris Cavanagh notifications@github.com wrote:

Thanks for looking into this! Honestly I’ve not tested it much on Linux yet. Do all videos fail to play?

In theory the “Browse” button in the app should still work, and then you could copy the URL into a different Linux (non-Chrome) browser? Or is it likely H-265 isn’t supported by any Linux browser?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BobStrogg/teslacam-browser/issues/27?email_source=notifications&email_token=ABHMRNLY52JKRFUTH7UAT3DPZ4VOXA5CNFSM4HW2IT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXL5XIA#issuecomment-500685728, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHMRNMWX5CDGXQJHUUOU7LPZ4VOXANCNFSM4HW2IT5Q .