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

[Bug]: TypeError: Cannot use 'in' operator to search for 'content-type' in undefined #123

Closed
aortmannm opened this issue Jun 20, 2022 · 2 comments

Comments

@aortmannm
Copy link

Contact Details

No response

What happened?

I updated Node to version 16 and npm to 8 because it's now the way to go for ioBroker.

With the new node version it doesn't seem to work anymore.

I used url2play to play online radio and now I get these errors:

chromecast.0 | 2022-06-20 08:09:37.362 | error | Alle - Cannot play file "https://liveradio.swr.de/sw282p3/dasding/play.mp3": TypeError: Cannot use 'in' operator to search for 'content-type' in undefined

chromecast.0 | 2022-06-20 08:09:37.359 | error | Alle - 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)

Adapter Version

3.0.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 08:09:37.362 | error | Alle - Cannot play file "https://liveradio.swr.de/sw282p3/dasding/play.mp3": TypeError: Cannot use 'in' operator to search for 'content-type' in undefined

chromecast.0 | 2022-06-20 08:09:37.359 | error | Alle - 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)

Anything else?

No response

@aortmannm aortmannm added the bug label Jun 20, 2022
@Apollon77
Copy link
Member

duplicate #124??

@aortmannm
Copy link
Author

Yes this is a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants