Closed nello closed 1 year ago
This smells like a faraday incompatibility that was fixed in https://github.com/slack-ruby/slack-ruby-client/pull/434 but not released yet (2.1.0). Can you please confirm with the code on master? I can do a release.
Hi, I can confirm that the latest CLI version on master
doesn't give the same "wrong number of arguments" error. It seems to give new errors, though.
bundle exec ./slack users list
error: missing_scope
bundle exec ./slack channels info
error: Unknown command 'channels'
It also looks like it's expecting a very old 2.7.6 ruby, so possibly issues with parameter passing?
The missing scope error means that the token you have doesn’t allow to call the API (not scoped to the API you’re calling). Read more about it here: https://api.slack.com/legacy/oauth-scopes
Channels were deprecated a while ago. If you found docs that mention channels we need to update them. To list channels you need to use “conversations”, https://api.slack.com/docs/conversations-api
To note, you'll also get this error (on master) if you try something that the bot doesn't have permissions to do, for example post to a channel that it's not in.
$ slack chat postMessage --text="hello world" --channel="#im-not-in-this-channel"
error: wrong number of arguments (given 1, expected 0)
Confirmed fixed in 2.1.0 please reopen if you see otherwise.
Hi, is this a dead project or am I missing some very important setup step? Just about all of the command-line functionality appears to be broken when I try it.
For example:
Gives the result:
This is the same for pretty much every command except
bundle exec slack auth test
, being the only one that gives meaningful JSON output:Am I actually going insane?