-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error sometimes when bot sending a message #67
Comments
it looks like its relate of using "?" or others symbols, not sure |
Same here First of all - THANK YOU !!!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so i get an error sometimes when the bot try to answer:
[OllamaAPI-ERR] CAUGHT FAULT!
Traceback (most recent call last):
File "/home/orangepi/ollama-telegram/bot/run.py", line 270, in ollama_request
if await handle_response(message, response_data, full_response):
File "/home/orangepi/ollama-telegram/bot/run.py", line 225, in handle_response
await send_response(message, text)
File "/home/orangepi/ollama-telegram/bot/run.py", line 240, in send_response
await bot.send_message(chat_id=message.chat.id, text=text,parse_mode=ParseMode.MARKDOWN)
File "/home/orangepi/.local/lib/python3.9/site-packages/aiogram/client/bot.py", line 2718, in send_message
return await self(call, request_timeout=request_timeout)
File "/home/orangepi/.local/lib/python3.9/site-packages/aiogram/client/bot.py", line 432, in call
return await self.session(self, method, timeout=request_timeout)
File "/home/orangepi/.local/lib/python3.9/site-packages/aiogram/client/session/base.py", line 257, in call
return cast(TelegramType, await middleware(bot, method))
File "/home/orangepi/.local/lib/python3.9/site-packages/aiogram/client/session/aiohttp.py", line 179, in make_request
response = self.check_response(
File "/home/orangepi/.local/lib/python3.9/site-packages/aiogram/client/session/base.py", line 120, in check_response
raise TelegramBadRequest(method=method, message=description)
aiogram.exceptions.TelegramBadRequest: Telegram server says - Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 702
do you know what i can do about it?
it only happens sometimes not always i dont understand very well what is going on
The text was updated successfully, but these errors were encountered: