irgendwr / TelegramAlert

🔔 Telegram Notification Plugin for Graylog
https://irgendwr.github.io/TelegramAlert/
MIT License
131 stars 18 forks source link

API request failed: Bad Request #22

Closed adirusmanto closed 4 years ago

adirusmanto commented 5 years ago

I am using Graylog 2.4 and plugin version 2.2.0

Graylog server should connect via proxy to access internet (I've set proxy server in alert created).

I got this error in graylog server log

[TelegramAlert] API request failed: Bad Request

Please help how to resolve this issue.

Thank you

Shantira commented 5 years ago

I got this on Graylog 3.1.3 when I clicked on Test button. It's not a plugin problem it's a broken test button cause messages are going to chats straight away. You should write something simple in Message field like "Test message" and hit the test button. It should works.

adirusmanto commented 5 years ago

I got this on Graylog 3.1.3 when I clicked on Test button. It's not a plugin problem it's a broken test button cause messages are going to chats straight away. You should write something simple in Message field like "Test message" and hit the test button. It should works.

Could you elaborate more detail? When actual alert condition happened, I check the telegram alert also failed.

I'm using default message template

<a href="${stream_url}">${stream.title}</a>: ${alert_condition.title} <code>${foreach test message} ${message} ${end}</code>

Shantira commented 4 years ago

I got this on Graylog 3.1.3 when I clicked on Test button. It's not a plugin problem it's a broken test button cause messages are going to chats straight away. You should write something simple in Message field like "Test message" and hit the test button. It should works.

Could you elaborate more detail? When actual alert condition happened, I check the telegram alert also failed.

I'm using default message template

<a href="${stream_url}">${stream.title}</a>: ${alert_condition.title} <code>${foreach test message} ${message} ${end}</code>

You could try Test sending instead of yours <a href="${stream_url}">${stream.title}</a>: ${alert_condition.title} <code>${foreach test message} ${message} ${end}</code> in message template and then hit "Test" button. Message should come to tg chat.

irgendwr commented 4 years ago

Try using the new release. If the issue still persists, feel free to open a new issue.