I am trying to remove a button block from a message I posted via a bot
- Permissions are all granted (including the required chat:write)
- exact same input (channel,msg,blocks,ts) works with the call in https://api.slack.com/methods/chat.update/test and correctly removes the button
But when my app calls, it results in an internal_error response
params={
"channel":channel_id, # same as via api.slack.com
"ts":msg_ts, # same as via api.slack.com
"text":msg, # same as via api.slack.com
"token":APP_TOKEN, # same as via api.slack.com
"blocks":[img_block] # same as via api.slack.com, dict (see below for value)
}
r = requests.post("https://slack.com/api/chat.update", params)
The blocks part, which is the key changing part (I first get all blocks, then I remove the button block by only posting the image block), I see in dev tools in chrome from https://api.slack.com/methods/chat.update/test equals the one of my app
blocks: [{'type': 'image', 'block_id': 'qtl', 'image_url': 'https://.s3.eu-central-1.amazonaws.com//tmp/filename.png', 'alt_text': 'ALT', 'title': {'type': 'plain_text', 'text': 'TEXT'}}]
blocks: [{'type': 'image', 'block_id': 'qtl', 'image_url': 'https://.s3.eu-central-1.amazonaws.com//tmp/filename.png', 'alt_text': 'ALT', 'title': {'type': 'plain_text', 'text': 'TEXT'}}]
Is this a bug? The API documentation states the following
The server could not complete your operation(s) without encountering an error, likely due to a transient issue on our end. It's possible some aspect of the operation succeeded before the error was raised.
Anything else I could try?