-
Notifications
You must be signed in to change notification settings - Fork 8
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
Integration keeps losing connection #12
Comments
Error Log Details after authenticating successfully and then it "loses" connection: Logger: custom_components.petsafe Authentication failed while fetching PetSafe data: Client error '403 Forbidden' for url 'https://platform.cloud.petsafe.net/scoopfree/product/product' For more information check: https://httpstatuses.com/403 |
I think they changed something or broke something. It might fix itself but if not it might be best to disable the integration so they don’t lock you out for too many failed attempts. |
I'm seeing this too. But I was asked to reconfigure again just once (15h ago). UPDATE: i've since reloaded the integration from menu next to my email address - entities are now live again |
I've seen this exact behavior. I also did a reload and it worked for a little bit then stopped again. |
Update: I removed the integration and re-added it and it appears to be working normally again. But when it wasn't, how it handled the issues created the duplicate configuration entries @cadwizzard mentioned. Update2: Spoke too soon. The entities went offline shortly after. |
Are you guys still having this issue? It just started happening to me ( that I noticed) |
Yep same here |
Happening to me again after the latest updates |
I'm working on a fix for this it's just kind of hard to prove it fixes it since I haven't found a pattern to when the issue occurs. |
If you want to test out my fix and you know what to do, update the manifest.json for the integration to use petsafe 2.0.7
Since it's kind of a "wait and see" bug having more people let me know if they can see an improvement will help. After changing the file just restart HA |
I have been seeing the issue every few days recently - have applied your fix and will report back if I see it happen again. |
Trying this as well. The connection usually stays for 5 days or so, so it might be a few days before I can report back. |
Just lost connection and it wants me to re-authenticate even after setting the requirements version. |
I've also had it happen again today, with the updated version. The error in the log at the time is below. `This error originated from a custom integration. Logger: custom_components.petsafe Authentication failed while fetching PetSafe data: Client error '403 Forbidden' for url 'https://platform.cloud.petsafe.net/scoopfree/product/product' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403` |
Same for me, just lost connection, do we ping the server at a high interval so we are kicked out ? |
I just lost connection after reconfiguring today |
Darn happened to me today too. I'll keep investigating. |
I want to check if you're experiencing the same thing I am while yes I am getting a 403 that causes a reauth, it does seem the data is continuing to update? I'm wondering if there API is just a bit flaky and throws 403s sometimes and I just need to add retries. Seems like an odd thing, but it does appear my litter box is still updating even though I got that error. |
Yes, if I ignore the re-auth prompts the data keeps coming in for me. |
@MivraMe the duplicate items is a different bug, I'll look into that, but this sounds like you did the reauth. It seems if you ignore the reauth, everything continues to work. |
All my sensors are unavailable for my petsafe food.. |
Right, as I said, you did the reauth workflow, correct? That is causing the bug I just filed on your behalf #18. If you delete the devices and reinstall it should begin working again. |
I've been testing a fix for this that so far seems good. If it's still working this weekend I'll release a new version |
I ran this for a week and didn't have any auth issues or data issues. I think their API just occasionally throws 403s so I added some retries to detect multiple errors before triggering a reauth can you guys try out 1.3.5 and let me know if it works? https://github.com/dcmeglio/homeassistant-petsafe/releases/tag/1.3.5 |
Thanks, have updated and will report back if I see any issue. |
I haven't heard any further reports so I'm going to mark this as closed. |
Integration was working for a couple of weeks flawlessly. Was asked to reconfigure, which I did assuming maybe there was a 30 day token and now it asks me to reconfigure every 5 minutes.
The text was updated successfully, but these errors were encountered: