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

Dropping devices #17

Open
jiffyjaff opened this issue Dec 27, 2021 · 4 comments
Open

Dropping devices #17

jiffyjaff opened this issue Dec 27, 2021 · 4 comments

Comments

@jiffyjaff
Copy link

I'm running the API using the CLI. Its intermittently keeps dropping all devices. The server is always running when this happens (reports OK and 1.2.1 version), but the /device endpoint returns an empty array. The device list will become populated again with all devices intermittently. Any thoughts on what I should check in logs or what might be causing this?

Thanks

@joymyr
Copy link

joymyr commented Feb 16, 2022

Did you find a solution?
For me it seems like all devices is dropped when all devices in our house is sleeping. If a phone wakes up the devices is added again within a few seconds. I've tried pinging the devices and opening the ip:port with telnet to see if I could trigger something, but nothing happens until I unlock my phone.

I also made an issue in the cast-web-api project:
vervallsweg/cast-web-api#155

@jiffyjaff
Copy link
Author

jiffyjaff commented Feb 17, 2022 via email

@joymyr
Copy link

joymyr commented Feb 17, 2022

I actually don't need to open any app. I think it's because Android phones pulls the status of all Google devices and shows it as notifications.
It also seems like the API disconnects the devices incorrectly for some reason, since they are still awake. So it might be worth looking into why they are disconnected, as this should never be necessary in a normal situation.

@joymyr
Copy link

joymyr commented Feb 17, 2022

The issue looks complex. The problem might be in the project mdns-cast-browser by the same author. In here there's a timeout which seems to trigger the device disconnection: https://github.com/vervallsweg/mdns-cast-browser/blob/master/ttl.js

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