iobroker-community-adapters / ioBroker.chromecast

ioBroker Chromecast Adapter
MIT License
22 stars 12 forks source link

[Bug]: Since the update to node.js 16 playing radio stations via script does not work #124

Closed meistermopper closed 2 years ago

meistermopper commented 2 years ago

Contact Details

No response

What happened?

Actually i deleted the adapter and the object tree, but it did nothing.

Adapter Version

2.3.1

JS-Controller Version

4.0.23

Node JS Version

16.15.1

NPM Version

8.11.0

Operating System

Debian

Relevant log output

chromecast.0    2022-06-20 15:56:20.789 error   Büro - Cannot play file "https://dispatcher.rndfnk.com/hr/hr1/live/mp3/high": TypeError: Cannot use 'in' operator to search for 'content-type' in undefined
chromecast.0    2022-06-20 15:56:20.789 error   Büro - Error playing playlist - TypeError: Cannot use 'in' operator to search for 'content-type' in undefined at MediaInfo._parseIcyHeaderPromise (/opt/iobroker/node_modules/castv2-player/lib/mediaInfo.js:143:26) at /opt/iobroker/node_modules/castv2-player/lib/mediaInfo.js:47:43 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Promise.all (index 1)
chromecast.0    2022-06-20 15:56:20.788 info    Büro - Closing mediaInfo
chromecast.0    2022-06-20 15:56:20.739 info    Büro - Player joint
chromecast.0    2022-06-20 15:56:20.738 info    Büro - Connected player
chromecast.0    2022-06-20 15:56:20.738 info    Büro - Default player lauched
chromecast.0    2022-06-20 15:56:20.738 info    Büro - Connected player
chromecast.0    2022-06-20 15:56:20.737 info    Büro - Try to join player
chromecast.0    2022-06-20 15:56:20.709 info    Büro - Detected redirection (302) to https://f111.rndfnk.com/ard/hr/hr1/live/mp3/128/stream.mp3?sid=2AqNuq61lHCqV7iDkFNIpfOj64M&token=KeQegklbD60inl89eTSTmqoo2H4fKC4kJgWYEKMkBoQ&tvf=7jzw42Fs-hZmMTExLnJuZGZuay5jb20
chromecast.0    2022-06-20 15:56:20.660 info    Büro - Try to launch default player
chromecast.0    2022-06-20 15:56:20.654 info    Büro - Try to play url - https://dispatcher.rndfnk.com/hr/hr1/live/mp3/high
chromecast.0    2022-06-20 15:56:20.156 error   Büro - Sorry, update for Büro.media.contentId not supported!
javascript.0    2022-06-20 15:56:20.155 warn    Read-only state "chromecast.0.Büro.media.contentId" has been written without ack-flag with value "https://dispatcher.rndfnk.com/hr/hr1/live/mp3/high"

Anything else?

No response

aortmannm commented 2 years ago

@Apollon77 with github Version 3.0.1 :)

Apollon77 commented 2 years ago

@aortmannm then I wait if anyone more of the "mee too" guys from above find time to check snd will release tomorrow or such

marlan99 commented 2 years ago

i always get the error message "net-tools" not found but it is installed.

Can you show that please too?

just installed the adapter from github on ioBroker without any previous version and get the following error message when trying to install a new instance: Bildschirmfoto 2022-08-25 um 11 53 15 then i deactivate the expert mode and the instance will be installed but does not start with following errors in the logfile: ` admin.0 2022-08-25 15:21:06.635 info <== Disconnect system.user.admin from ::ffff:192.168.1.135
host.iobroker-test 2022-08-25 15:21:06.398 error startInstance system.adapter.chromecast.0 Adapter dependency not fulfilled on any host: required adapter "net-tools" not found!
admin.0 2022-08-25 15:21:02.849 info ==> Connected system.user.admin from ::ffff:192.168.1.135
host.iobroker-test 2022-08-25 15:21:01.024 error startInstance system.adapter.chromecast.0 Adapter dependency not fulfilled on any host: required adapter "net-tools" not found!

`

when i do the same with version 2.3.1 in the expert mode i get the same error message and its not possible to install an instance of the adapter. without expert mode then the instance will be installed and is running fine without any errors.

Juicytronic commented 2 years ago

i always get the error message "net-tools" not found but it is installed.

Can you show that please too?

just installed the adapter from github on ioBroker without any previous version and get the following error message when trying to install a new instance:

Bildschirmfoto 2022-08-25 um 11 53 15

then i deactivate the expert mode and the instance will be installed but does not start with following errors in the logfile:

`

admin.0 | 2022-08-25 15:21:06.635 | info | <== Disconnect system.user.admin from ::ffff:192.168.1.135

-- | -- | -- | --

host.iobroker-test | 2022-08-25 15:21:06.398 | error | startInstance system.adapter.chromecast.0 Adapter dependency not fulfilled on any host: required adapter "net-tools" not found!

admin.0 | 2022-08-25 15:21:02.849 | info | ==> Connected system.user.admin from ::ffff:192.168.1.135

host.iobroker-test | 2022-08-25 15:21:01.024 | error | startInstance system.adapter.chromecast.0 Adapter dependency not fulfilled on any host: required adapter "net-tools" not found!

`

when i do the same with version 2.3.1 in the expert mode i get the same error message and its not possible to install an instance of the adapter. without expert mode then the instance will be installed and is running fine without any errors.

You Need to install the "net-tools" Adapter before you can create a chromecast instance since V3.0.0 .

marlan99 commented 2 years ago

but why do i have the error message only in the expert mode ?

and net-tools seems to be installed already:

sudo apt install net-tools
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
net-tools ist schon die neueste Version (1.60+git20180626.aebd88e-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
aortmannm commented 2 years ago

net-tools is an ioBroker Adapter

marlan99 commented 2 years ago

ok was not clear to me and could not find a hint to it. but for this case i can confirm: "works as designed" :-)

a lot of warnings in the logs about wrong type and "This object will not be created in future versions. Please report this to the developer." but it is running.

thanks to all

Apollon77 commented 2 years ago

Can I please get the full list of these "the object ..." errors as a debug log please as own issue?

Then I can look into it.

Apollon77 commented 2 years ago

then lets release it ... will be funny for sure :-) 3.0.3 on it's way to beta