assistant-relay icon indicating copy to clipboard operation
assistant-relay copied to clipboard

catt scan failed

Open jayhohoho2019 opened this issue 3 years ago • 5 comments

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.

jayhohoho2019 avatar Aug 14 '21 17:08 jayhohoho2019

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":

6uhrmittag avatar Aug 20 '21 19:08 6uhrmittag

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

jbibi-home avatar Oct 10 '21 16:10 jbibi-home

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.

jayhohoho2019 avatar Feb 19 '22 15:02 jayhohoho2019

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.

nbortolussi avatar Oct 12 '22 04:10 nbortolussi

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

pyto00 avatar Feb 20 '23 19:02 pyto00