You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried the chat_postMessage method, and it works perfectly. However, when using the file_uploads method, it returns an OK status but doesn't post anything in my Slack channel.
Then tried with curl and successfully posted my file in the Slack channel.
What am I doing wrong? Why does it work with chat_postMessage but does not with the file_uploads method? I have to assume that my config, token, app permissions, etc. Is working properly. Otherwise, I wouldn't be able to post text messages with chat_postMessage.
I followed the docs as much as possible and took a quick look at the endpoints/files.rb file of this gem and I can't seem to find where I'm falling short.
I assume file_uploads is just a typo? The correct name is files_upload.
The next problem I see is channel. The API requires channels, and takes a comma-separated list. Try changing that?
We should add patches that ensure that "either a file or content parameter" are provided (from the documentation), and add support for channel (singular), and channels (array of strings), so that the caller can mix and match. PRs welcome!
I have tried the
chat_postMessage
method, and it works perfectly. However, when using thefile_uploads
method, it returns an OK status but doesn't post anything in my Slack channel.Then tried with
curl
and successfully posted my file in the Slack channel.What am I doing wrong? Why does it work with
chat_postMessage
but does not with thefile_uploads
method? I have to assume that my config, token, app permissions, etc. Is working properly. Otherwise, I wouldn't be able to post text messages withchat_postMessage
.I followed the docs as much as possible and took a quick look at the
endpoints/files.rb
file of this gem and I can't seem to find where I'm falling short.The text was updated successfully, but these errors were encountered: