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

I am getting flicky results on status #199

Open
marjuscako opened this issue Nov 26, 2024 · 1 comment
Open

I am getting flicky results on status #199

marjuscako opened this issue Nov 26, 2024 · 1 comment

Comments

@marjuscako
Copy link

marjuscako commented Nov 26, 2024

I just install the utility and started to play around. I have a chromecast and I was watching a movie at that time. However it seems that I couldn't get the status consistently:

$ go-chromecast ls
1) device="Chromecast HD" device_name="Projector" address="192.168.1.42:8009" uuid="8c14515959c0386e617826190cf5ad68"
$ go-chromecast status -u 8c14515959c0386e617826190cf5ad68
error: unable to get cast application: unable to connect to chromecast at '192.168.1.4:8009': dial tcp 192.168.1.4:8009: i/o timeout
$ go-chromecast status -a 192.168.1.42
error: unable to get cast application: unable to connect to chromecast at '192.168.1.42:8009': context deadline exceeded
$ go-chromecast status -a 192.168.1.4
error: unable to get cast application: unable to connect to chromecast at '192.168.1.4:8009': dial tcp 192.168.1.4:8009: i/o timeout
$ go-chromecast status -a 192.168.1.42
Stremio (PLAYING), title="...", artist="", time remaining=1009s/2929s, volume=1.00, muted=false
$ go-chromecast status -u 8c14515959c0386e617826190cf5ad68
error: unable to get cast application: unable to connect to chromecast at '[fe80::7ca7:7eff:fe04:ea95]:8009': dial tcp [fe80::7ca7:7eff:fe04:ea95]:8009: connect: invalid argument
$ go-chromecast status -u 8c14515959c0386e617826190cf5ad68
Stremio (PLAYING), title="...", artist="", time remaining=1033s/2929s, volume=1.00, muted=false

An interesting messages is also this:

error: unable to get cast application: unable to connect to chromecast at '192.168.1.4:8009': dial tcp 192.168.1.4:8009: i/o timeout

Even though the IP of the chromecast is 192.168.1.42 the log reports it attempted the IP 192.168.1.4. Then it attempted an IPv6.

I would expect to always try connect over the IPv4 since it exists, and also pick the correct IP.

@vishen
Copy link
Owner

vishen commented Nov 26, 2024

Do you mind trying both of those commands again but with the --disable-cache flag and seeing if that makes a difference? I am wondering if the cache is doing something weird here.

If that doesn't work, do you mind running the same commands again but this time with the --verbose and --debug flags and posting their output?

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