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]: host is null in play url #150

Closed
divY42 opened this issue Jan 12, 2023 · 10 comments
Closed

[Bug]: host is null in play url #150

divY42 opened this issue Jan 12, 2023 · 10 comments

Comments

@divY42
Copy link

divY42 commented Jan 12, 2023

Contact Details

github@alexanderolbricht.de

What happened?

I recently reinstalled the chromecast adapter to be able to send notifications to my chromecast devices in conjunction with tts adapter "sayit". Although working in the past, currently I run into an "getaddrinfo" error because my host is null.

image

adapter.config.webServer seems to be null. Using a second web server instance does nothing for me.
I cannot edit or select a proper IP adress in the chromecast adapter settings.

image

This is the configuration for my web.0 instance:

image

Any ideas what I can try to get rid of this error?
discovery and net-tools are running as well.

Adapter Version

3.0.3

JS-Controller Version

4.0.24

Node JS Version

18.1.0

NPM Version

8.8.0

Operating System

Ubuntu

Relevant log output

No response

Anything else?

No response

@divY42 divY42 added the bug label Jan 12, 2023
@raintonr
Copy link
Contributor

Ah... in fact... I think this is a duplicate of #145. Sorry I didn't notice that earlier. Doh!

@raintonr
Copy link
Contributor

Re: #145 (comment)

You have stated here that you are using 3.0.3 of the adapter. Please install the master direct from Github and report back as to if your experience then changes to that described in #145.

@divY42
Copy link
Author

divY42 commented Jan 12, 2023

Sorry for the question, but how exactly do I do that? Never done that before.
I know I am supposed to go into expert mode and use the Octocat icon, but what URL do I provide there?

Neither

https://github.com/iobroker-community-adapters/ioBroker.chromecast/tree/master

nor

https://github.com/iobroker-community-adapters/ioBroker.chromecast

is working for me.

image

@raintonr
Copy link
Contributor

Doh! There was a typo in the package.json. Fixed now so please try again.

FYI, I just fixed #145 so with any luck your issue will have magically disappeared 😉

@divY42
Copy link
Author

divY42 commented Jan 12, 2023

Sadly, your fix doesn't work for me.

Even with 3.1.0, I cannot select an IP adress from my web instance.

image

@raintonr
Copy link
Contributor

Please forget the versions and use the latest installed directly from GitHub master so we can troubleshoot this.

What does the admin screen now show? Can you now select an IP address? If you can select an IP address, is it getting saved properly (look in system.adapter.chromecast.0 object for the native property). If it's getting saved properly, what is the URL that is being shown when you try and play a local file?

@divY42
Copy link
Author

divY42 commented Jan 13, 2023

I did use the latest installed directly from GitHub.
At least I think that's what I did.

I used https://github.com/iobroker-community-adapters/ioBroker.chromecast/tree/master and installed it via adapter view in ioBroker

image

After that, I logged onto my ubuntu host and did iobroker add ioBroker.chromecast, which resulted in an instance with version 3.1.0.
Did I do something wrong?

Besides that, no, I Still cannot select an IP address:

image

@raintonr
Copy link
Contributor

Maybe the upload didn't run or failed? You could run iob upload chromecast and check again.

If still not working, please look at the source of the Chromecast admin page...

http(s)://your.iob.host/adapter/chromecast/index_m.html?0&newReact=true&0&react=colored

... and check it is the same as Github. Particularly line that the hidden option on line 119 is there: https://github.com/iobroker-community-adapters/ioBroker.chromecast/blob/master/admin/index_m.html#L119

@divY42
Copy link
Author

divY42 commented Jan 13, 2023

yes, my page source code looks exactly the same like in https://github.com/iobroker-community-adapters/ioBroker.chromecast/blob/master/admin/index_m.html#L119

image

@raintonr
Copy link
Contributor

I notice you are using web 5.4.1. I am still on 4.3.0 here. Maybe the newer adapter isn't storing the value as expected?

What is the bind value on your web config? The admin screen shows 0.0.0.0 but I wonder if that's not actually what is stored.

Please turn on expert mode and check what value exactly has been stored. I would expect 0.0.0.0 but maybe this is just a blank string?

image

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