Brandawg93 / homebridge-fordpass

Control your Ford vehicle in HomeKit using Homebridge.
GNU General Public License v3.0
61 stars 15 forks source link

[Bug]: new version 2.0 issue with lock status #254

Closed cmorozcogmailcom closed 5 days ago

cmorozcogmailcom commented 1 month ago

Describe the bug

just installed the new version and now I'm seeing 429 issues.

Debug Output

[6/7/2024, 4:42:31 AM] [FordPass] Command failed with error: {"message":"Request failed with status code 429","name":"AxiosError","stack":"AxiosError: Request failed with status code 429\n at settle (/usr/lib/node_modules/homebridge-fordpass/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/homebridge-fordpass/node_modules/axios/lib/adapters/http.js:589:11)\n at IncomingMessage.emit (node:events:529:35)\n at endReadableNT (node:internal/streams/readable:1400:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (/usr/lib/node_modules/homebridge-fordpass/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json","Application-Id":"AFDC085B-377A-4351-B23E-5E1D35FB3700","Authorization":"Bearer 1rwmZdkvwYzF5EBspc7GmAF1bgiWloOnQ","User-Agent":"axios/1.7.2","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"https://api.mps.ford.com/api/fordconnect/v1/vehicles/FF8080818E575382018E659D7065005B/status"},"code":"ERR_BAD_REQUEST","status":429} [6/7/2024,

[6/7/2024, 4:42:38 AM] [FordPass] Vehicle info failed with error: ERR_BAD_REQUEST [6/7/2024, 4:42:38 AM] TypeError: Cannot read properties of undefined (reading 'lockStatus') at FordPassPlatform. (/usr/lib/node_modules/homebridge-fordpass/src/index.ts:133:59) at Generator.next () at fulfilled (/usr/lib/node_modules/homebridge-fordpass/dist/index.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [6/7/2024, 4:42:38 AM] Got SIGTERM, shutting down Homebridge... [6/7/2024, 4:42:39 AM] TypeError: Cannot read properties of undefined (reading 'ignitionStatus') at Timeout. (/usr/lib/node_modules/homebridge-fordpass/src/index.ts:205:66) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7) [6/7/2024, 4:42:40 AM] TypeError: Cannot read properties of undefined (reading 'lockStatus') at Timeout. (/usr/lib/node_modules/homebridge-fordpass/src/index.ts:145:64) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7) [6/7/2024, 4:42:40 AM] TypeError: Cannot read properties of undefined (reading 'ignitionStatus') at Timeout. (/usr/lib/node_modules/homebridge-fordpass/src/index.ts:205:66) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7)

Steps to reproduce

  1. installed new plugin

Device Type

raspberry pi

iOS Version

17.5.1

Bug Persistence

Consistently

Last Working Version

test@1.10-2 - stopped working too.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days