Can not add alert from UI
See original GitHub issueOn Trying to add alert through UI, getting the following error
{"message":"(psycopg2.ProgrammingError) can't adapt type 'dict'\n[SQL: INSERT INTO alert (alert_name, alert_type, data_source, alert_query, alert_settings, kpi, kpi_alert_type, severity_cutoff_score, alert_message, alert_frequency, alert_channel, alert_channel_conf, active, created_at, last_alerted) VALUES (%(alert_name)s, %(alert_type)s, %(data_source)s, %(alert_query)s, %(alert_settings)s, %(kpi)s, %(kpi_alert_type)s, %(severity_cutoff_score)s, %(alert_message)s, %(alert_frequency)s, %(alert_channel)s, %(alert_channel_conf)s, %(active)s, %(created_at)s, %(last_alerted)s) RETURNING alert.id]\n[parameters: {'alert_name': 'abcd', 'alert_type': 'KPI Alert', 'data_source': {'active': True, 'connection_status': 'connected', 'connection_type': 'Postgres', 'created_at': 'Sat, 18 Sep 2021 08:28:25 GMT', 'id': 4, 'is_third_party': False, 'last_sync': None, 'name': 'Cloud Failure', 'sync_status': None}, 'alert_query': '', 'alert_settings': '', 'kpi': 15, 'kpi_alert_type': 'Anomaly', 'severity_cutoff_score': 7, 'alert_message': 'Test alert', 'alert_frequency': 'daily', 'alert_channel': 'slack', 'alert_channel_conf': '\"{}\"', 'active': True, 'created_at': datetime.datetime(2021, 10, 2, 11, 23, 44, 266857), 'last_alerted': None}]\n(Background on this error at: http://sqlalche.me/e/14/f405)","status":"failure"}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I checked this now and it works. Ill close this issue.
On Thu, Oct 7, 2021 at 12:58 PM Varun P @.***> wrote:
This was a frontend issue, fixed in c2d225fbe6b63cf8b785515edd52143cbd89a5f0