Slack upload fails with TypeError: this.robot.adapter.client.web.files.uploadV2 is not a function
#188
Labels
TypeError: this.robot.adapter.client.web.files.uploadV2 is not a function
#188
Describe the bug
When using with the listed versions, the script package is unable to Slack's file upload API.
To Reproduce
hubot graf db linux-node-fleet-overview
Expected behavior
The TypeError indicates we may need to do some extra checking of the loaded-in Slack adapter, and possibly switch behavior if the
uploadV2
method is not present.Logs
Software:
4.1.0
[email protected]
/@slack/[email protected]
v16.20.2
8.19.4
Additional context
It looks like it's getting the image itself without issue, but running into trouble with a mismatch between the (now legacy) Slack adapter for Hubot and the
@slack/web-api
version. Not entirely sure what it should try to fall back to.The text was updated successfully, but these errors were encountered: