kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
119 stars 10 forks source link

TypeError: callback.call is not a function #100

Closed lebence closed 6 months ago

lebence commented 7 months ago

Describe The Bug: After initalizing cameras my homebridge shutting down.

Logs:

[12/4/2023, 11:40:44 AM] TypeError: callback.call is not a function
    at Cam.<anonymous> (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/events.js:309:14)
    at parseSOAPString (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/utils.js:108:3)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/cam.js:297:4)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1368:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[12/4/2023, 11:40:44 AM] Got SIGTERM, shutting down Homebridge...
[12/4/2023, 11:40:44 AM] TypeError: callback.call is not a function
    at Cam.<anonymous> (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/events.js:309:14)
    at parseSOAPString (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/utils.js:108:3)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-tapo-camera/node_modules/onvif/lib/cam.js:297:4)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1368:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

Plugin Config:

{
            "cameras": [
                {
                    "name": "balcony",
                    "ipAddress": " ---",
                    "password": "---",
                    "streamUser": "---",
                    "streamPassword": "---",
                    "disableAlarmAccessory": true
                },
                {
                    "name": "garden",
                    "ipAddress": "---",
                    "password": "---",
                    "streamUser": "---",
                    "streamPassword": "---",
                    "disableAlarmAccessory": true
                }
            ],
            "platform": "tapo-camera"
        },

Environment:

ColinPascoe commented 7 months ago

I upgraded to latest Docker Homebridge version and latest Plugin Version and I am also now getting the same error as above.

ppapajohn commented 7 months ago

Hi all, +1 with the exact same issue. My only difference is in the Node.js version but I guess this is not important (i.e. I have v20.10.0).

Best Regards, Panos

themfinger commented 7 months ago

+1

harrisonratcliffe commented 7 months ago

Having the same issue.

eliteladen commented 7 months ago

Same problem here, even tried going back to older versions but get the same error

harrisonratcliffe commented 7 months ago

Having the same issue.

I managed to sort my issue not long after. Can't tell you what fixed it, tried loads of things.

anthonydb06 commented 7 months ago

Hello I also have the same issue and even with plugin downgrade to 2.3.0 the plugin keeps loading in a loop... @harrisonratcliffe can you please tell us all the things you did so that we can try it on our side ?

Thanks

anthonydb06 commented 6 months ago

Up … Does anyone manage to fix this callback error which clauses the plugin to reboot in a loop …

kopiro commented 6 months ago

Try latest version please https://github.com/kopiro/homebridge-tapo-camera/releases/tag/v2.3.4

ppapajohn commented 6 months ago

Try latest version please

https://github.com/kopiro/homebridge-tapo-camera/releases/tag/v2.3.4

Thanks @kopiro! Just tested it and it works seamlessly.