bostrt / homebridge-bali-blinds

Bali Motorized Blinds Plugin for Homebridge
Apache License 2.0
4 stars 1 forks source link

Getting auth error #7

Closed gkarthiks closed 10 months ago

gkarthiks commented 1 year ago

Describe The Bug:

Getting an auth issue during the startup of the bridge.

To Reproduce: Install the plugin and provide the creds, restart the bridge.

Logs:

[12/04/2023, 15:43:39] [BaliBlinds] Error: Request failed. 401, body: WWW-Authenticate: MMSAuth error="invalid session"
    at IncomingMessage.<anonymous> (/var/lib/homebridge/node_modules/homebridge-bali-blinds/src/helper.ts:16:20)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

Plugin Config:

        {
            "baliUsername": "<username>",
            "baliPassword": "<password>",
            "lowBattery": 33,
            "platform": "BaliBlinds"
        }
bostrt commented 1 year ago

Thanks for the bug report! I'll take a look

bostrt commented 1 year ago

Can you give this a try and run from a Linux machine (same place you are hosting homebridge is okay) and send me the output. It shouldn't log any credentials but please double-check before posting:

$ wget https://gist.githubusercontent.com/bostrt/714b4aebf57573cfc3c91c44debd4fc4/raw/7b264bac6f3fedb54f6832acee8c3fd8d0272cb1/bali-auth-test.sh
$ chmod +x bali-auth-test.sh
$ ./bali-auth-test.sh YOUR_USERNAME YOUR_PASSWORD
bostrt commented 10 months ago

Closing this since I am unable to reproduce the issue. @gkarthiks if you still see this issue in the latest release please reopen this ticket. https://github.com/bostrt/homebridge-bali-blinds/releases/tag/v0.0.5-beta.2