Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error after deleting node

Featured Replies

I removed an airthings device by deleting it using the plug-in config page and after that the following error kept happening every short poll:

2024-09-22 13:24:04.648 Thread-107 (handler_poll) udi_interface      ERROR    pgSession:response: Not Found: https://ext-api.airthings.com/v1//devices/3220001054/latest-samples: text: {"error":"NOT_FOUND","error_description":"segment for user <myapikey> does not exist"}
2024-09-22 13:24:04.648 Thread-107 (handler_poll) udi_interface      ERROR    Controller:api_get: failed to parse res={'code': 404, 'data': {'error': 'NOT_FOUND', 'error_description': 'segment for user <myapikey> does not exist'}}
Traceback (most recent call last):
  File "/var/polyglot/pg3/ns/<myeisy>_8/nodes/Controller.py", line 251, in api_get
    LOGGER.warning(f"Service returned code {code} {res['data']['message']}")
                                                   ~~~~~~~~~~~^^^^^^^^^^^


 

This caused the "server status" in IoX to become false and it triggered a program to notify me of that every short poll. I didn't notice until I checked my email later to see an inbox full of notifications. It's like the polling temporarily changes the status to something other than false but then back to false, causing the program to trigger each time. IMO, I should have only received one notification when it went false the first time.

The problem stopped after I restarted the plug-in but I'd suggest that, if possible, some cleaning up could be done within the plug-in when one deletes a node so one does not have to restart to avoid this error. Alternatively the plug-in could restart itself (if that's possible) or a message to restart the plug-in could be provided, although these are less elegant solutions. The problem with restarts is that they reset the polling timer to zero, which causes the API limit to be reached.

Of course this is not critical. Just something to maybe consider the next time the plug-in is opened up for changes.

Thanks for all the good work you've done on this plug-in to make using these devices in my automation possible.

 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.