Skip to content
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

[BUG] browser gets in bad state and wont respond to http commands correctly #50

Open
mogorman opened this issue Nov 15, 2022 · 6 comments

Comments

@mogorman
Copy link

mogorman commented Nov 15, 2022

Describe the bug
I have a gallery web app that I connect to with this. Occasionally it looks like a xref request fails to grab an image. When this happens the browser seems to lock up. the http api commands like brightness or settings seem to work, but relaunch , reload , and url seem to do nothing. the currentUrl never seems to update. When I first got into this state i was able to do an eval alert one time without a problem. now any time i issue it also does nothing.

To Reproduce
Long running websocket with xref requests. I realize this is very connected to what I am doing so if you have suggestions on how to debug I am happy to look into it.

Smartphone (please complete the following information):

  • Device: [Fire Tablet HD8]
  • OS: [e.g. Fire OS 7.3.2.6]
  • Applicaiton version [v0.10.4 Build 0]
@mogorman
Copy link
Author

maybe it would be possible to have last console.log be accessible as a api/state var?

@mogorman
Copy link
Author

also it looks like even on a non crashed app. the alert function only works one time.

curl http://10.0.42.60:2971/api/command --header 'Content-Type: application/json;charset=UTF-8' --data-raw '{"eval": "alert(2);"}'
# clear the 2 by pressing okay
curl http://10.0.42.60:2971/api/command --header 'Content-Type: application/json;charset=UTF-8' --data-raw '{"eval": "alert(2);"}'

@mogorman
Copy link
Author

mogorman commented Nov 15, 2022

url and eval also only seems to work one time and block all future commands after being called.

@mogorman
Copy link
Author

mogorman commented Nov 15, 2022

relaunch and reload seems to be fine on recalls.

@JavanXD
Copy link

JavanXD commented Mar 7, 2024

I experienced the same issue, I had to restart the WallPanel app after sending an command with "eval".

Device: NSPanel Pro

@JavanXD
Copy link

JavanXD commented Mar 7, 2024

@TheTimeWalker could you please take a look at this BUG?

You call stopDisconnectTimer() once a eval() command is triggered which is unnecessary. The same for url() command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants