On initial form save, it uses "uptime_widget" service in "validateForm()", but there is no API key and monitor ID in configs yet. Request return error, but it not handled.
Possible solution:
Check only empty and valid API key and monitor ID in "validateForm()" and move out its update to "submitForm()". If the request returns success, it saves configs and now "uptime_widget" service can get the valid API key. Also, all actions which use service will be triggered after initial config saving.

Comments

Vladimirrem created an issue. See original summary.

id.rem.dev’s picture

StatusFileSize
new4.43 KB
stockticker’s picture

Status: Needs review » Reviewed & tested by the community

Seems fine.

knyshuk.vova’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.