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

Login is not retried if api login call fails for whatever reason #527

Open
rdeutsch3 opened this issue Aug 7, 2024 · 5 comments
Open

Login is not retried if api login call fails for whatever reason #527

rdeutsch3 opened this issue Aug 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@rdeutsch3
Copy link

Describe Your Problem:

The plug-in seemed to stop working, so I restarted the child bridge and it is returning 503 errors.
My Infinity thermostats report they are connected and are working properly.
Nothing has changed on my homebridge configuration, network or with this plug-in. Its been working fine, only occasionally I've restarted it when it seems to not communicate with the carrier servers. I say "seems" as there is nothing in the log showing any issue, but the thermostats don't update. A restart of the child bridge seems to right its world and everything is good, but not this time. I've restarted the bridge a few times across a few hours and no joy.

Thoughts?

Logs:
[8/7/2024, 9:40:40 AM] [homebridge-carrier-infinity] Child bridge process ended
[8/7/2024, 9:40:40 AM] [homebridge-carrier-infinity] Process Ended. Code: 143, Signal: null
[8/7/2024, 9:40:47 AM] [homebridge-carrier-infinity] Restarting Process...
[8/7/2024, 9:40:48 AM] [homebridge-carrier-infinity] Launched child bridge with PID 23459
[8/7/2024, 9:40:48 AM] Registering platform 'homebridge-carrier-infinity.CarrierInfinity'
[8/7/2024, 9:40:48 AM] [homebridge-carrier-infinity] Loaded homebridge-carrier-infinity v1.6.13 child bridge successfully
[8/7/2024, 9:40:48 AM] Loaded 8 cached accessories from cachedAccessories.XXXXXXXXXX.
[8/7/2024, 9:40:49 AM] Homebridge v1.8.4 (HAP v0.12.2) (HB CarrierInfinity-Bridge) is running on port 59304.
[8/7/2024, 9:40:49 AM]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
Please visit the following link to learn more about the changes and how to prepare:
https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] Login failed: Request failed with status code 503
[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Could not refresh access token: Request failed with status code 503
[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Failure sending activation signal: Request failed with status code 503
[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Failed to fetch updates: Request failed with status code 503
[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] Could not discover devices: Cannot read properties of undefined (reading 'locations')

Plugin Config:

{
"username": "[email protected]",
"password": "*******",
"holdBehavior": "activity",
"showOutdoorTemperatureSensor": true,
"showFanControl": false,
"showIndoorHumiditySensors": true,
"showZoneComfortActivityControls": false,
"_bridge": {
"name": "HB CarrierInfinity-Bridge",
"username": "XX:XX:XX:XX:XX:XX",
"port": 59304
},
"platform": "CarrierInfinity"
}
Screenshots:
n/a

Environment:

  • Plugin Version :v1.6.13
  • Homebridge Version: v4.56.4
  • Node.js Version: v20.11.0
  • NPM Version: 10.2.4
  • Operating System: Raspbian
@rdeutsch3 rdeutsch3 added the question Request for help label Aug 7, 2024
@tjridge
Copy link

tjridge commented Aug 7, 2024

I'm getting the same errors:

[API] Failure sending activation signal: Request failed with status code 503

@rdeutsch3
Copy link
Author

A little more info, when I attempt to log into the carrier site via:
https://www.myinfinitytouch.carrier.com/login

I get a red "Network Error" message just above the login button and it fails. Perhaps they've got something going on internally, as I used to be able to log into the site directly.

@rdeutsch3
Copy link
Author

Seems like it was a backend issue at Carrier. The “Network Error” message is gone on the Carrier site, I can now login and the plug-in was fine after I restarted the child bridge.

Closed.

@grivkees
Copy link
Owner

grivkees commented Aug 9, 2024

This does look resolved now. But it looks like it may require a plugin restart for it to try logging in again. Going to reopen this to track fixing the plugin to retry login if the login fails.

@grivkees grivkees reopened this Aug 9, 2024
@grivkees grivkees changed the title Has API Changed or is it down? Plug-in reporting a 503 error Login is not retried if api login call fails for whatever reason Aug 9, 2024
@grivkees grivkees added bug Something isn't working and removed question Request for help labels Aug 9, 2024
@rdeutsch3
Copy link
Author

The retry would be cool. Thanks for reopening.

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

No branches or pull requests

3 participants