In this article
...
Any action you want to perform within a Slack Workspace, additionally needs appropriate Scopes assigned to your app. See the Scope and Permissions article in Slack API documentation for the complete list and each Account page under Configuring Slack Accounts (Doc in Progress) for information on defining Scopes for your app.
...
Error | Reason | Resolution |
---|---|---|
IO error while performing the operation | File not found on elastic.snaplogic.com at /api/1/rest/.../Slack_SnapPack/filename.extn | Ensure that the file you want to upload is available in your project folder and try uploading the file again. |
Unable to create an interim channel for the given list of users, Reason: user_not_found | The Snap could not find one or more recipients in the current workspace and hence could not create an interim channel for sending the file. | Ensure that all of the recipient users are mentioned in a valid format and retry uploading the file. |
Error uploading file Reason: missing_scope | The Snap account does not have the required Scopes to upload file into the workspace. | Ensure that the Snap account is configured to have the required Scopes and Permissions provided in Prerequisites section of this document. |
Auth error, Reason: No user token present in the OAuth2 response | A valid token is not available for the account to make a successful OAuth2 connection with your Slack app. | Ensure your OAuth2 app is configured correctly, and try authorizing account again. |
Error uploading file, Reason: invalid_channel | There exists no channel with one of the names/IDs you have specified in the Channels field. | Ensure that all the channels you mentioned in the Channels field are valid and try uploading the file again. |
...
Uploading and Deleting Files using Slack Snap Pack
This example demonstrates how we can use the Upload File Snap to share files with one or more recipients. To delete a file that you have sent to another Slack user/Channel/private group, you need to use the Delete File Snap to pass the id of the file to be deleted. The same can be done for multiple files, at once.
In this example, we use the Upload File Snap to upload and share a file with members of a Channel.
...