Skip to content

KeyError: 'message_id' #188

Description

@rmalenko

Helo,

I have got this error

zbxtg.py: {'ok': True, 'result': {'id': 1054514541, 'is_bot': True, 'first_name': '***_alert', 'username': '****_bot'}}
zbxtg.py: Cache file with uids: /var/tmp/zbxtg/uids.txt
zbxtg.py: Telegram uid of group '9******68': 9******68
zbxtg.py: http://zabbix-***.com/chart3.php?from=now-10800&to=now&name=ah-s**.com%20-%20zabbix-agent%20service%20not%20running&width=900&height=200&graphtype=0&legend=1&items[0][itemid]=29689&items[0][sortorder]=0&items[0][drawtype]=5&items[0][color]=00CC00
{'ok': True, 'result': {'id': 1054514541, 'is_bot': True, 'first_name': '***_alert', 'username': '***_father_bot'}}
Traceback (most recent call last):
File "/etc/zabbix/alertscripts/zbxtg.py", line 939, in <module>
main()
File "/etc/zabbix/alertscripts/zbxtg.py", line 899, in main
message_id = tg.result["result"]["message_id"]
KeyError: 'message_id'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions