Some errors we found in the staging logs, we need to investigate whether these are actual errors (and open tickets to fix them), or events we should ignore, or downgrade from "error" to "warning".
[2023-09-08 15:51:24][TzBot.main][Error][diogo][PID 63317][ThreadId 15][tzbot-1.0-5sK58AN9Fpn5DZvT1ItOcu:TzBot.ProcessEvents src/TzBot/ProcessEvents.hs:114:7] Invalid message event/action, error "Error in $: expected edited message"
[2023-09-08 15:51:24][TzBot.main][Error][diogo][PID 63317][ThreadId 15][tzbot-1.0-5sK58AN9Fpn5DZvT1ItOcu:TzBot.ProcessEvents src/TzBot/ProcessEvents.hs:115:7] Full event object: {"channel":"C02N85E82LV","channel_type":"channel","event_ts":"1694188283.002300","hidden":true,"message":{"attachments":[{"fallback":"GitHub: GitHub: Let’s build from here","from_url":"http://www.github.com/","id":1,"image_bytes":309453,"image_height":630,"image_url":"https://github.githubassets.com/images/modules/site/social-cards/campaign-social.png","image_width":1200,"original_url":"http://www.github.com","service_icon":"https://github.com/favicon.ico","service_name":"GitHub","text":"GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...","title":"GitHub: Let’s build from here","title_link":"http://www.github.com/"}],"blocks":[{"block_id":"yLL","elements":[{"elements":[{"text":"Hello with link to ","type":"text"},{"text":"github.com","type":"link","unsafe":true,"url":"http://www.github.com"}],"type":"rich_text_section"}],"type":"rich_text"}],"client_msg_id":"679a7537-094f-42c3-b629-6d568feafc9e","team":"T02NDBHSWSG","text":"Hello with link to <http://www.github.com|github.com>","ts":"1694188279.128769","type":"message","user":"U02N85E78QM"},"previous_message":{"blocks":[{"block_id":"yLL","elements":[{"elements":[{"text":"Hello with link to ","type":"text"},{"text":"github.com","type":"link","unsafe":true,"url":"http://www.github.com"}],"type":"rich_text_section"}],"type":"rich_text"}],"client_msg_id":"679a7537-094f-42c3-b629-6d568feafc9e","team":"T02NDBHSWSG","text":"Hello with link to <http://www.github.com|github.com>","ts":"1694188279.128769","type":"message","user":"U02N85E78QM"},"subtype":"message_changed","ts":"1694188283.002300","type":"message"}
Clarification and motivation
Some errors we found in the staging logs, we need to investigate whether these are actual errors (and open tickets to fix them), or events we should ignore, or downgrade from "error" to "warning".
Unknown block types
Message deleted events