-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slack-web-out lacking response object when using files.upload #31
Comments
Interesting. Can you deploy with |
First of all there's
when deploying, but i guess that's due to my token not supporting RTM (it's "the new kind").
The files appear on my thread after a slight delay, at first i thought about it being a timing issue ("node awaiting an immediate response while the slack api is still processing the request" sort of issue) |
Ok for some reason it’s throwing an error. If you’re able to tweak the running code at all in your environment then remove If not I’ll fire it up and see if I get a failure in my setup or not. |
I changed line 1311 to what you proposed, output looks pretty much the same to me
|
After some digging in the @slack/client files and forcing the Note that i'm way out of my comfortzone here: Adding
to the switch() resulted in instant uploads of files, opposed to the 30s-2min delay that usually happens and a valid response from slack. This however only works for raw text and i've got no clue how to send multipart data :)
|
Yeah I assumed it had something to do with the special content type handling etc. I’ll do some digging on this and see if we can’t create something that’s nice and easy to use. Thanks! |
How to reproduce:
Create a msg object and pipe it into the slack-web-out node:
Files get uploaded to my slack channel fine, however according to the documentation a file object should be returned which according to slack-web-out node info should be in msg.payload.
slack-web-out returns a slackState, but no payload
The text was updated successfully, but these errors were encountered: