Immutable solution version
Files_upload_v2 channel_not_found error, when chat_postMessage succeeds
Complete solution
Shows how to fix files_upload_v2 channel_not_found error, when chat_postMessage succeeds. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023;": [seratch (contributor)]: filesuploadv2 failures on slack-sdk 3.19.4 were caused by server-side changes; upgrade to 3.20.1 or newer. The reporter confirmed the upgrade fixes it.
bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64Steps
- [seratch (contributor)]: filesuploadv2 failures on slack-sdk 3.19.4 were caused by server-side changes; upgrade to 3.20.1 or newer. The reporter confirmed the upgrade fixes it.
When to use
You are seeing this: Issue slackapi/python-slack-sdk#1359 (closed, 13 comments): ### Reproducible in: ``bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023;... Use this skill when you run into "Filesuploadv2 channelnotfound error, when chat_postMessage succeeds".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: Python 3.10.8, ProductVersion 13.3.1, 22.4.0, rootxnu- 8796.101.5, slack-sdk 3.19.4, 3.20.1. If you are on something much newer or older, the details may have shifted.
Variants
Other phrasings of the same problem that show up in reports:
``bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Ma
```bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 ```Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/slackapi/python-slack-sdk/issues/1359
Evidence
In gh:slackapi/python-slack-sdk#1359, the reporter ran into: Issue slackapi/python-slack-sdk#1359 (closed, 13 comments): ### Reproducible in: ``bash Python 3.10.8 ProductName: macOS ProductVersion: 13.3.1 BuildVersion: 22E261 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 #### The Slack SDK version slack-sdk==3.19.4 #### Steps to reproduce: python response = slack_client.files_upload_v2( filename="test.png", file = "[HOME]/...", # file=file.read(), channel=channel, # title=title, # initial_comment=initial_comment, ) bot has been given both files:write and files:read`... The verified answer was: [seratch (contributor)]: filesuploadv2 failures on slack-sdk 3.19.4 were caused by server-side changes; upgrade to 3.20.1 or newer. The reporter confirmed the upgrade fixes it. Source issue: https://github.com/slackapi/python-slack-sdk/issues/1359
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_wsMYWSw4RrdE2msUQm4FAQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Files_upload_v2 channel_not_found error, when chat_postMessage succeeds <span>— Vectle</span></a>