Title: slack is posting two/three messages with chat_postMessage · Issue #693 · slackapi/bolt-python · GitHub
Open Graph Title: slack is posting two/three messages with chat_postMessage · Issue #693 · slackapi/bolt-python
X Title: slack is posting two/three messages with chat_postMessage · Issue #693 · slackapi/bolt-python
Description: Description Describe your issue here. I am using slack-bolt python framework for my slack bolt which is going through some logic. I am using chat_postMessage method to send a message from bot. But currently it is sending three messages e...
Open Graph Description: Description Describe your issue here. I am using slack-bolt python framework for my slack bolt which is going through some logic. I am using chat_postMessage method to send a message from bot. But ...
X Description: Description Describe your issue here. I am using slack-bolt python framework for my slack bolt which is going through some logic. I am using chat_postMessage method to send a message from bot. But ...
Opengraph URL: https://github.com/slackapi/bolt-python/issues/693
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"slack is posting two/three messages with chat_postMessage","articleBody":"### Description\r\n\r\nDescribe your issue here.\r\nI am using slack-bolt python framework for my slack bolt which is going through some logic. I am using chat_postMessage method to send a message from bot. But currently it is sending three messages even though it's having single API call. I read about it and notices that it can be avoided with making X-Slack-Retry-Num =1 in header.(https://api.slack.com/apis/connections/events-api#graceful_retries) But i am wondering how can i change the header of the api call in res_out = app.client.chat_postMessage(channel=message['channel'],thread_ts = original_thread_id,blocks=block_final)\r\n### What type of issue is this? (place an `x` in one of the `[ ]`)\r\n- [ ] bug\r\n- [ ] enhancement (feature request)\r\n- [ ] question\r\n- [ ] documentation related\r\n- [x] example code related\r\n- [ ] testing related\r\n- [ ] discussion\r\n\r\n### Requirements (place an `x` in each of the `[ ]`)\r\n* [x ] I've read and understood the [Contributing guidelines](https://github.com/slackapi/bolt/blob/main/.github/contributing.md) and have done my best effort to follow them.\r\n* [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).\r\n* [x] I've searched for any related issues and avoided creating a duplicate issue.\r\n\r\n---\r\n\r\n### Bug Report\r\n\r\nFilling out the following details about bugs will help us solve your issue sooner.\r\n\r\n#### Reproducible in:\r\n\r\n\r\npackage version:\r\n\r\nnode version:\r\n\r\nOS version(s):\r\n\r\n#### Steps to reproduce:\r\n\r\n1. use res_out = app.client.chat_postMessage(channel=message['channel'],thread_ts = original_thread_id,blocks=block_final) in the bot's code and due to retry mechanism it tries and sends the same message thrice on single call.\r\n\r\n\r\n#### Expected result:\r\nBot should only post single message.\r\n\r\n\r\n#### Actual result:\r\nBot is posting two/three same messages\r\n\r\n\r\n#### Attachments:\r\n\r\n\r\n","author":{"url":"https://github.com/kunalrc2022","@type":"Person","name":"kunalrc2022"},"datePublished":"2022-08-03T19:50:34Z","url":"https://github.com/slackapi/bolt-python/issues/693"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bec2bb12-6b51-70ad-6087-adde0e0a5ade |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2CE:3D7D1E:322AA7:40C3A3:6AFF8A54 |
| html-safe-nonce | 0ed362f67a6bc20c6667bcd9e15af89ff457f80cf25f10690f9c224f25fec086 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkNFOjNEN0QxRTozMjJBQTc6NDBDM0EzOjZBRkY4QTU0IiwidmlzaXRvcl9pZCI6Ijc0NTQ4OTk1MTkxNDcxODI2NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 778d39d770b79c07fa18d85f6993afb9365b131cac69cd5d6f9140f34ebc0b5c |
| hovercard-subject-tag | issue:1327715481 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/slackapi/bolt-python/693/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52fcdc1521bbca3323a9c1921039bf7bf1e8f34c4624232fba90f2a59ceb3556/slackapi/bolt-python/issues/693 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52fcdc1521bbca3323a9c1921039bf7bf1e8f34c4624232fba90f2a59ceb3556/slackapi/bolt-python/issues/693 |
| og:image:alt | Description Describe your issue here. I am using slack-bolt python framework for my slack bolt which is going through some logic. I am using chat_postMessage method to send a message from bot. But ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kunalrc2022 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 587ad99a3e443b2e1cb0d3df059ec49ab54389861f13310766dfdeb615fed90d |
| turbo-cache-control | no-preview |
| go-import | github.com/slackapi/bolt-python git https://github.com/slackapi/bolt-python.git |
| octolytics-dimension-user_id | 6962987 |
| octolytics-dimension-user_login | slackapi |
| octolytics-dimension-repository_id | 268795735 |
| octolytics-dimension-repository_nwo | slackapi/bolt-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 268795735 |
| octolytics-dimension-repository_network_root_nwo | slackapi/bolt-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5bb0fb68d64881d1344f5863d809515d496801e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width