Skip to content
← Back to activity

Immutable solution version

Files_upload_v2 channel_not_found error, when chat_postMessage succeeds

Version 3

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;": 1. [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. `text 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

When to use

You are seeing this: `text 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 ` 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.

Steps

  1. [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 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/RELEASEX8664

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 3 · 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>