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: Discover Devices 2: TypeError: Cannot convert undefined or null to object with both 1.3.5-beta.5 & v2.0.0 #94

Closed
rightedges opened this issue Jan 31, 2024 · 9 comments
Assignees
Labels
bug Something isn't working stale

Comments

@rightedges
Copy link

Describe The Bug

When the plugin starts, it gave "Discover Devices 2: TypeError: Cannot convert undefined or null to object".

To Reproduce

Install either 1.3.5-beta.5 or v2.0.0 and restart the plugin

Expected behavior

Without this error and device is able to show in homebridge.

Relevant log output

[1/30/2024, 9:31:37 PM] [August] Launched child bridge with PID 47609
[1/30/2024, 9:31:37 PM] Registering platform 'homebridge-august.August'
[1/30/2024, 9:31:37 PM] [August] Loaded homebridge-august v1.3.5-beta.5 child bridge successfully
[1/30/2024, 9:31:37 PM] Loaded 0 cached accessories from cachedAccessories.0E67EC312ADF.
[1/30/2024, 9:31:37 PM] [August] [DEBUG] Using Config Logging: debug
[1/30/2024, 9:31:37 PM] [August] Finished initializing platform: August
[1/30/2024, 9:31:37 PM] [August] Platform Config: {"logging":"debug"}
[1/30/2024, 9:31:37 PM] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[1/30/2024, 9:31:37 PM] [August] [DEBUG] Config OK
[1/30/2024, 9:31:37 PM] [August] [DEBUG] Executed didFinishLaunching callback
[1/30/2024, 9:31:37 PM] [August] [DEBUG] augustId: [email protected], installId: XXXXXXXXXXXXXXXXXXXX, password: XXXXXXXX, isValidated: true
[1/30/2024, 9:31:37 PM] [August] [DEBUG] countryCode: US
[1/30/2024, 9:31:37 PM] [August] [DEBUG] August Credentials: {"installId”:”XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,”augustId":"[email protected]","password”:”XXXXXXX”,”countryCode":"US"}
[1/30/2024, 9:31:37 PM] [August] [DEBUG] August Credentials: {"config":{"apiKey”:”XXXXXXXXXXXXXXXXXX,”pnSubKey":"sub-c-XXXXXXXXXXXXXXXXXXXXXX”,”installId”:”XXXXXXXXXXXXXXXXXXXXXXXXXXXX”X,”idType":"email","augustId":"[email protected]","password”:”XXXXXXX”,”countryCode":"US"}}
[1/30/2024, 9:31:37 PM] Homebridge v1.7.0 (HAP v0.11.1) (August) is running on port 43273.
FetchError: Status 401 (undefined): undefined
[1/30/2024, 9:31:38 PM] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object



[1/30/2024, 9:36:42 PM] [August] Restarting child bridge...
[1/30/2024, 9:36:42 PM] Got SIGTERM, shutting down child bridge process...
[1/30/2024, 9:36:47 PM] [August] Child bridge process ended
[1/30/2024, 9:36:47 PM] [August] Process Ended. Code: 143, Signal: null
[1/30/2024, 9:36:54 PM] [August] Restarting Process...
[1/30/2024, 9:36:54 PM] [August] Launched child bridge with PID 48074
[1/30/2024, 9:36:55 PM] Registering platform 'homebridge-august.August'
[1/30/2024, 9:36:55 PM] [August] Loaded homebridge-august v2.0.0 child bridge successfully
[1/30/2024, 9:36:55 PM] Loaded 0 cached accessories from cachedAccessories.0E67EC312ADF.
[1/30/2024, 9:36:55 PM] [August] [DEBUG] Using Config Logging: debug
[1/30/2024, 9:36:55 PM] [August] Finished initializing platform: August
[1/30/2024, 9:36:55 PM] [August] Platform Config: {"logging":"debug"}
[1/30/2024, 9:36:55 PM] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[1/30/2024, 9:36:55 PM] [August] [DEBUG] Config OK
[1/30/2024, 9:36:55 PM] [August] [DEBUG] Executed didFinishLaunching callback
[1/30/2024, 9:36:55 PM] [August] [DEBUG] augustId: [email protected], installId: XXXXXXXXXXXXXXXXXXXXXXXX, password: XXXXXXX, isValidated: true
[1/30/2024, 9:36:55 PM] [August] [DEBUG] countryCode: US
[1/30/2024, 9:36:55 PM] [August] [DEBUG] August Credentials: {"installId”:”XXXXXXXXXXXXXXXXXXXXXX,”augustId":"[email protected]","password”:”XXXXXXXX,”countryCode":"US"}
[1/30/2024, 9:36:55 PM] [August] [DEBUG] August Credentials: {"config":{"apiKey”:”XXXXXXXXXXXXXXXXXXXXXX,”pnSubKey":"sub-c-XXXXXXXXXXXXXXXXXXXX","installId”:”XXXXXXXXXXXXXXXXXXXXXXXXX”,”idType":"email","augustId":"[email protected]","password”:”XXXXXXXX”,”countryCode":"US"}}
[1/30/2024, 9:36:55 PM] Homebridge v1.7.0 (HAP v0.11.1) (August) is running on port 43273.
FetchError: Status 401 (undefined): undefined
[1/30/2024, 9:36:55 PM] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

Config for homebridge-august

{
            "name": "August",
            "credentials": {
                "augustId": "[email protected]",
                "password": "XXXXXXXX",
                "contryCode": "US",
                "installId": "XXXXXXXXXXXXXXXXXXXXXXXX",
                "isValidated": true,
                "notice": "Keep your tokens a secret!"
            },
            "options": {
                "logging": "debug"
            },
            "_bridge": {
                "username": "XXXXXXXXXXXX",
                "port": 43273
            },
            "platform": "August"
        }

Screenshots

No response

Device & Model

Lock Model YR C/D 226/246/256

Node.js Version

20.11.0

NPM Version

10.2.4

Homebridge Version

v1.7.0

Homebridge August Plugin Version

v2.0.0

Homebridge Config UI X Plugin Version

v4.54.1

Operating System

macOS Ventura

@rightedges rightedges added the bug Something isn't working label Jan 31, 2024
@simonrb2000
Copy link

simonrb2000 commented Jan 31, 2024

Same for me, no improvement with both the beta and V2 (removed sensitive info)

[31/01/2024, 09:03:44] [August] [DEBUG] Using Config Logging: debug
[31/01/2024, 09:03:44] [August] Finished initializing platform: August
[31/01/2024, 09:03:44] [August] Platform Config: {"logging":"debug"}
[31/01/2024, 09:03:44] [August] [DEBUG] Using Default Refresh Rate (5 minutes).
[31/01/2024, 09:03:44] [August] [DEBUG] Config OK
[31/01/2024, 09:03:44] [August] [DEBUG] Executed didFinishLaunching callback
[31/01/2024, 09:03:44] [August] [DEBUG] augustId: email, installId: 6 password: password, isValidated: true
[31/01/2024, 09:03:44] [August] [DEBUG] countryCode: US
[31/01/2024, 09:03:44] [August] [DEBUG] August Credentials: {"installId":"6","augustId":"email,"password":"password","countryCode":"US"}
[31/01/2024, 09:03:44] [August] [DEBUG] August Credentials: {"config":{"apiKey":"key","pnSubKey":"sub-c-f","installId":"2","idType":"email","augustId":"email","password":"password","countryCode":"US"}}
[31/01/2024, 09:03:44] Homebridge v1.7.0 (HAP v0.11.1) (August) is running on port 32274.
FetchError: Status 401 (undefined): undefined
[31/01/2024, 09:03:44] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

@donavanbecker
Copy link
Collaborator

Please turn debug mode on and post logs.

@simonrb2000
Copy link

Please turn debug mode on and post logs.

That was with Debug on and that's the only logs that show?

@IWCaldwell
Copy link

I get the exact same issue and the plugin is useless for me 👎

[29/02/2024, 19:18:02] [August] Discover Devices 2: TypeError: Cannot convert undefined or null to object

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 31, 2024
Copy link

github-actions bot commented Apr 6, 2024

This issue has been closed as no further activity has occurred.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2024
@donavanbecker
Copy link
Collaborator

Please try v2.1.0, if you still have an issue please open a new issue.

@IWCaldwell
Copy link

I get a new error now:

[August] Validated, Discover Devices: Error: GET failed with: 401

@rightedges
Copy link
Author

New issue is opened #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

4 participants