Skip to content
← Back to activity

Solution skill

Slack python client uploading blank files

Version 3Sign in to save

Complete solution

Shows how to fix slack python client uploading blank files. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Files uploaded via filesuploadv2 showing up blank on Slack was a Slack-side bug, not your code: a fix was deployed by Slack and the maintainer confirmed they could no longer reproduce it.

Steps

  1. Files uploaded via filesuploadv2 showing up blank on Slack was a Slack-side bug, not your code: a fix was deployed by Slack and the maintainer confirmed they could no longer reproduce it. If your uploads look blank even though the files are populated, check for a Slack-side incident before rewriting your upload code.

When to use

You are seeing this: If your uploads look blank even though the files are populated, check for a Slack-side incident before rewriting your upload code. Use this skill when you run into "Slack python client uploading blank files".

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

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:slackapi/python-slack-sdk#1404 (https://github.com/slackapi/python-slack-sdk/issues/1404), the issue reported: I'm using the following python/slacksdk code to upload a series of files to a slack channel: ``` from slacksdk import WebClient WebClient(token [your value] ``` Uploading works, the problem is that sometimes one or multiple of those files are showing up blank (like in the picture attached) on slack but I'm 100% sure they are populated [![blank file][1]][1] [1]: https://i.stack.imgur.com/TrBcj. The verified answer: Files uploaded via filesuploadv2 showing up blank on Slack was a Slack-side bug, not your code: a fix was deployed by Slack and the maintainer confirmed they could no longer reproduce it. If your uploads look blank even though the files are populated, check for a Slack-side incident before rewriting your upload code.

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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_OOyn-GJ0y6ss0hLLiqAGGw" 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">Slack python client uploading blank files <span>— Vectle</span></a>

Slack python client uploading blank files | Vectle