-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
Description
Happened today. Here's what I see in the logs:
{"Timestamp":"2024-02-05T09:18:33.3673418+00:00","Level":"Information","MessageTemplate":"Telegram actor spawning…","Properties":{"EventCategory":"Telegram"}}
{"Timestamp":"2024-02-05T09:18:33.3976361+00:00","Level":"Information","MessageTemplate":"Telegram actor starting ({Path})…","Properties":{"Path":"akka://emulsion/user/core/telegram","EventCategory":"Telegram"}}
It seems the container was restarted at that time, for whatever reason, and the newly-spawned instance was unable to get any messages from Telegram.
Exceptions may be logged incorrectly. Here's what I see in the docker logs:
ApiResponseException: expected:',', actual:'p', at offset:1137 in {"ok":true,"result":[{"update_id":372875371,
"message":{"message_id":189640,"from":{"id":999999999,"is_bot":false,"first_name":"PPPPP","last_name":"VVVVVVV","username":"sssssssssssssss"},"chat":{"id":-1111111111111,"title":"IIIIIIII","username":"pppppppppppppp","type":"supergroup"},"date":1111111111,"message_thread_id":111111,"reply_to_message":{"message_id":189632,"from":{"id":61251188,"is_bot":false,"first_name":"AAAAAAAAA","username":"eeeeeeeeeeeee","is_premium":true},"chat":{"id":-1111111111111,"title":"IIIIIIII","username":"pppppppppppppp","type":"supergroup"},"date":1707117257,"message_thread_id":111111,"quote":{"text":"\u043d\u0443 \u044f \u0431\u0440\u0430\u043b \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0440\u0435\u0437\u0430\u043d\u043d\u0430\u044f (\u0433\u0434\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u043e\u0434 Fn), \u043d\u043e \u0438 \u0447\u0442\u043e\u0431\u044b \u0431\u0435\u0437 numpad. \u044f \u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0442\u0430\u043c Ins\\","position":9,"is_manual":true},"text":"\u0430 \u0441\u043a\u0438\u043d\u044c \u0444\u043e\u0442\u043e, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430"},"photo":[{"file_id":"xxx","file_unique_id":"xxx","file_size":1743,"width":90,"height":67},{"file_id":"xxx","file_unique_id":"xxx","file_size":25340,"width":320,"height":240},{"file_id":"AgACAgIAAx0CQHbgfQABAuTIZcC2cd2HlQ3VuWVwjbhhjnNlgyUAAtLWMRt4TAhK2BrVNrtOhKoBAAMCAAN4AAM0BA","file_unique_id":"AQAD0tYxG3hMCEp9","file_size":109607,"width":800,"height":600},{"file_id":"xxx","file_unique_id":"xxx-","file_size":218265,"width":1280,"height":960}]}}]}. Code: -1
It seems there's an error in this place: Ins\\","posi
Are we parsing the JSON incorrectly, or is it incorrect by itself? Should figure out later. Perhaps update Funogram to a version that supports quotes?
TODO
- Fix the parsing issue, somehow
- Figure out the exception handling