Telegram API error: can't parse entities: Unclosed start tag #53

Closed
opened 2023-07-03 10:03:53 +00:00 by skobkin · 0 comments
Collaborator
# python3 update.py
Starting the updater with logging level INFO
2023-07-03 10:02:32: <UpdateManager> [INFO] Running update
2023-07-03 10:02:32: <UpdateManager> [INFO] Feeds to update: 2
2023-07-03 10:02:32: <UpdateManager> [INFO] Processing [2] https://habr.com/ru/rss/all/all/?fl=ru
2023-07-03 10:02:32: <UpdateManager> [INFO] Processing [5] https://github.com/transmission/transmission/releases.atom
Traceback (most recent call last):
  File "/bot/update.py", line 29, in <module>
    updater.update()
  File "/bot/update_manager.py", line 39, in update
    self.notifier.send_updates(chat_ids, diff, feed_obj.title)
  File "/bot/telegram.py", line 148, in send_updates
    self.__send_update(chat_id, update)
  File "/bot/telegram.py", line 152, in __send_update
}    self.bot.send_message(
  File "/usr/local/lib/python3.10/site-packages/telebot/__init__.py", line 978, in send_message
    apihelper.send_message(
  File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 267, in send_message
    return _make_request(token, method_url, params=payload, method='post')
  File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 152, in _make_request
    json_result = _check_result(method_name, result)
  File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 179, in _check_result
    raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: can't parse entities: Unclosed start tag at byte offset 4078
``` # python3 update.py Starting the updater with logging level INFO 2023-07-03 10:02:32: <UpdateManager> [INFO] Running update 2023-07-03 10:02:32: <UpdateManager> [INFO] Feeds to update: 2 2023-07-03 10:02:32: <UpdateManager> [INFO] Processing [2] https://habr.com/ru/rss/all/all/?fl=ru 2023-07-03 10:02:32: <UpdateManager> [INFO] Processing [5] https://github.com/transmission/transmission/releases.atom Traceback (most recent call last): File "/bot/update.py", line 29, in <module> updater.update() File "/bot/update_manager.py", line 39, in update self.notifier.send_updates(chat_ids, diff, feed_obj.title) File "/bot/telegram.py", line 148, in send_updates self.__send_update(chat_id, update) File "/bot/telegram.py", line 152, in __send_update } self.bot.send_message( File "/usr/local/lib/python3.10/site-packages/telebot/__init__.py", line 978, in send_message apihelper.send_message( File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 267, in send_message return _make_request(token, method_url, params=payload, method='post') File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 152, in _make_request json_result = _check_result(method_name, result) File "/usr/local/lib/python3.10/site-packages/telebot/apihelper.py", line 179, in _check_result raise ApiTelegramException(method_name, result, result_json) telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: can't parse entities: Unclosed start tag at byte offset 4078 ```
skobkin added the
bug
label 2023-07-03 10:03:53 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Miroslavsckaya/tg_rss_bot#53
No description provided.