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

TypeError: The "listener" #447

Open
tobias406 opened this issue Nov 1, 2023 · 3 comments
Open

TypeError: The "listener" #447

tobias406 opened this issue Nov 1, 2023 · 3 comments

Comments

@tobias406
Copy link

Hi,

after the update to 1.20 i have the following issue

TypeError: The "listener" argument must be of type function. Received an instance of Object
at checkListener (node:events:274:3)
at ClientRequest.once (node:events:648:3)
at new ClientRequest (node:_http_client:239:10)
at Object.request (node:https:378:10)
at /usr/local/lib/node_modules/homebridge-broadband/node_modules/http-proxy-agent/node_modules/agent-base/patch-core.js:25:22
at file:///usr/local/lib/node_modules/homebridge-homematicip/node_modules/node-fetch/src/index.js:94:20
at new Promise ()
at fetch (file:///usr/local/lib/node_modules/homebridge-homematicip/node_modules/node-fetch/src/index.js:49:9)
at HmIPConnector.init (file:///usr/local/lib/node_modules/homebridge-homematicip/src/HmIPConnector.ts:114:28)
at HmIPPlatform.discoverDevices (file:///usr/local/lib/node_modules/homebridge-homematicip/src/HmIPPlatform.ts:146:32)

Does someone have an answer how to fix?
Thanks

@marcsowen
Copy link
Owner

Which node.js version are you using?

@tobias406
Copy link
Author

i have updatet to the latest version

@marcsowen
Copy link
Owner

Actually, I don't know what the problem is. Somehow an issue related to the node-fetch library not being compatible with your node.js version. Maybe try to remove the plugin completely and try again, e.g. the directory /usr/local/lib/node_modules/homebridge-homematicip - You can of course keep your configuration.

If possible write down the exact version of node.js and maybe the node-fetch library in /usr/local/lib/node_modules/homebridge-homematicip/node_modules/node-fetch

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

2 participants