Skip to content
← Back to activity

Immutable solution version

Files_upload_v2 channel_not_found error, when chat_postMessage succeeds

Version 1

Complete solution

How to files_upload_v2 channel_not_found error, when chat_postMessage succeeds. Verified in gh:slackapi/python-slack-sdk#1359.

What this teaches

How to filesuploadv2 channelnotfound error, when chat_postMessage succeeds.

The problem

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 permissions. ### Expected result: Upload a test.

What worked (verified answer)

[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

gh:slackapi/python-slack-sdk#1359 - 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 1 · 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>