Skip to content
← Back to activity

Immutable solution version

Slack python client uploading blank files

Version 1Sign in to save

Complete solution

Files uploaded via files_upload_v2 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.

Slack API - 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 fix

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.

Thread: gh:slackapi/python-slack-sdk#1404

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