mantisbt-plugins / TelegramBot

15 stars 13 forks source link

Telegram returned an invalid response! #16

Closed brlumen closed 5 years ago

brlumen commented 5 years ago

An error occurs if the IP address in the packet header transmitted from the mantisbt to the server side of the telegram does not match the IP address specified in the DNS for the mantisbt domain name.

brlumen commented 5 years ago

First you need to add error interception at the stage of sending messages to the telegram. Secondly, it is necessary to perform an additional check for the match of the ip addresses of the source and the one specified in the dns.

brlumen commented 5 years ago

It turned out that it was not a bug. This message occurs if the server telegrams or someone for them, are responsible for an empty message. In my case, the ISP has blocked access to api.telegram.org