bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
182 stars 28 forks source link

[Bug]: Invalid passport profile response #166

Closed droath closed 1 year ago

droath commented 1 year ago

Version

1.2.0

Node version

latest

Operating System type

Docker

Operating system version

16-alpine

Describe the bug

I get the following error showing up in the events log.

    "type": "event",
    "event": {
        "source": "driver",
        "event": "connectionError",
        "error": {
            "stack": "ApiInvalidResponseError: Invalid passport profile response\n    at HTTPApi.login (/usr/src/app/node_modules/eufy-security-client/build/http/api.js:340:51)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async EufySecurity.connect (/usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:643:9)\n    at async Function.handle (/usr/src/app/dist/lib/driver/message_handler.js:73:25)\n    at async Client.receiveMessage (/usr/src/app/dist/lib/server.js:93:62)",
            "message": "Invalid passport profile response",
            "name": "ApiInvalidResponseError"
        }
    }
}

To reproduce

  1. Connect to WS server.
  2. Send "start_listening" command.
  3. The error described in the description will be thrown.

Screenshots & Logfiles

No response

Additional context

No response

Firaslaw commented 1 year ago

في الأحد، ١٨ كانون الأول ٢٠٢٢ ٨:١١ ص Travis Tomka @.***> كتب:

Version

1.2.0 Node version

latest Operating System type

Docker Operating system version

16-alpine Describe the bug

I get the following error showing up in the events log.

"type": "event",
"event": {
    "source": "driver",
    "event": "connectionError",
    "error": {
        "stack": "ApiInvalidResponseError: Invalid passport profile response\n    at HTTPApi.login (/usr/src/app/node_modules/eufy-security-client/build/http/api.js:340:51)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async EufySecurity.connect (/usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:643:9)\n    at async Function.handle (/usr/src/app/dist/lib/driver/message_handler.js:73:25)\n    at async Client.receiveMessage (/usr/src/app/dist/lib/server.js:93:62)",
        "message": "Invalid passport profile response",
        "name": "ApiInvalidResponseError"
    }
}

}

To reproduce

  1. Connect to WS server.
  2. Send "start_listening" command.
  3. The error described in the description will be thrown.

Screenshots & Logfiles

No response

Additional context

No response

— Reply to this email directly, view it on GitHub https://github.com/bropat/eufy-security-ws/issues/166, or unsubscribe https://github.com/notifications/unsubscribe-auth/A22FAJ3NQ5BWGN7OW4VCHHDWN2MGLANCNFSM6AAAAAATCKLL3Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

martijnpoppen commented 1 year ago

See https://github.com/bropat/eufy-security-client/pull/282