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

catt scan failed #256

Open
jayhohoho2019 opened this issue Aug 14, 2021 · 5 comments
Open

catt scan failed #256

jayhohoho2019 opened this issue Aug 14, 2021 · 5 comments

Comments

@jayhohoho2019
Copy link

jayhohoho2019 commented Aug 14, 2021

Describe the bug
Enabled cast media and web browser returned a message saying it installed casting dependencies. But then it showed CATT SCAN FAILED. The rest like broadcast is working fine.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
catt scan should return a list of devices capable of being cast to.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Platform Ubuntu 20.04 DT
  • Browser Chrome
  • Version latest. V3.3b

Additional context
Not sure if the dependency install should be done with sudo, in advance.

@6uhrmittag
Copy link

Tried to replicate it and got the same message. In my case disabling&re-enabling the casting feature brought it back to life - it now works as expected.

Maybe it's just a hiccup and it helps:

  1. Tab Configuration -> Setting Casting Enabled -> Disable+Save&Enable+Save
  2. Tab Cast Sandbox -> Wait 10 sec. - there should be a loading indicator in the Device field
  3. then the indicator is gone, the devices should be in the drop-down

There is nothing weird in the logs - installed the dependencies months ago:

POST /server/getConfig 19.889 ms 
POST /server/updateConfig 52.042 ms
POST /server/updateConfig 51.499 ms
Checking dependencies for casting...
Dependencies OK
POST /server/installCast 42.614 ms
POST /cast/search 7554.955 ms 

If not, maybe check the following commands for hints:

(change user root to the user you're running assistant relay with)
pip3 show catt should show the package

pip3 show catt
Name: catt
Version: 0.12.2

catt scan on the server should list the devices as well

root@DietPi:~# catt scan
Scanning Chromecasts...
192.168.0.250 - XX- Google Inc. Google Nest Mini

you can replicate the POST /cast/search 7554.955 ms with curl:

curl --show-error --silent --header "Content-Type: application/json" --request POST http://<IP>:3000/cast/search

output:

{"success":true,"devices":[{"name":"XX","model":"Google Nest Mini","uuid":

@jbibi-home
Copy link

jbibi-home commented Oct 10, 2021

I am able to see my devices when I just run "catt scan" but when I use curl to POST or if I use the sandbox, it says "CATT scan failed"
Please help.

I see this error:
0|www | POST /cast/search 500 528.181 ms - 44

@jayhohoho2019
Copy link
Author

disable/save/enable/save on the web UI didn't fix this for me. UI shows catt failed, loading devices was taking forever.

On the server, pip3 show catt works. catt scan works by returning a list of my chromecast devices - 17 of them. So it looks like the issue is with the front end code.

@nbortolussi
Copy link

nbortolussi commented Oct 12, 2022

Was anyone able to get to the bottom of this issue?

I get the message POST /server/installCast 200 when enabling it in settings, but... no devices ever show in sandbox.

Dependencies seem to be properly installed. Running catt scan shows all my cast devices.

Running

{
"device": "Office Chromecast",
"source": "https://www.youtube.com/watch?v=CUc6NEEbbeo",
"type": "remote"
}

works properly.

@pyto00
Copy link

pyto00 commented Feb 20, 2023

Bumping this.
I also have troubles with /cast/search

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

5 participants