Telegram API error: can't parse entities: Unclosed start tag #53
skobkin
commented 2023-07-03 10:03:53 +00:00
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
```
skobkin
added the 2023-07-03 10:03:53 +00:00
bug
label
skobkin
referenced this issue 2023-07-19 22:18:08 +00:00
Return simplified HTML subset to item descriptions #54
skobkin
referenced this issue from a commit 2023-07-19 22:23:30 +00:00
Fix #53. Temporarily (?) sanitizing all HTML tags from RSS item descriptions to avoid non-closed tags being sent to Telegram API.
skobkin
referenced this issue from a pull request that will close it, 2023-07-19 22:24:48 +00:00
Fix #53. Temporarily (?) sanitizing all HTML tags from RSS item descriptions to avoid non-closed tags being sent to Telegram API. #55
Miroslavsckaya
closed this issue 2023-07-20 16:50:04 +00:00
Miroslavsckaya
referenced this issue from a commit 2023-07-20 16:50:05 +00:00
Merge pull request 'Fix #53. Temporarily (?) sanitizing all HTML tags from RSS item descriptions to avoid non-closed tags being sent to Telegram API.' (#55) from fix_53 into master
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Miroslavsckaya/tg_rss_bot#53
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?