rlister / slackcat

Upload files to Slack chat from the command-line.
MIT License
329 stars 27 forks source link

Slackcat not working properly #14

Open silvansky opened 9 years ago

silvansky commented 9 years ago

Hi! I tried to use Slackcat to upload some files to Slack channel, but got some problems. I set SLACK_TOKEN to proper token I got, then I call echo "hello" | slackcat -c my-channel, but it results in error:

/Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:17:in `block in get_objects': error retrieving channels from channels.list: missing_scope (RuntimeError)
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/httparty-0.13.6/lib/httparty/response.rb:35:in `tap'
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:16:in `get_objects'
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:22:in `channels'
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:118:in `block in <top (required)>'
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:117:in `map'
    from /Users/jenkins/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/slackcat-0.2.5/bin/slackcat:117:in `<top (required)>'
    from /Users/jenkins/.rbenv/versions/2.1.3/bin/slackcat:23:in `load'
    from /Users/jenkins/.rbenv/versions/2.1.3/bin/slackcat:23:in `<main>'

File upload with -m results in the same error. What should I do to fix that?

rlister commented 9 years ago

@silvansky Interesting, I've not see missing scope before, normally I'd expect invalid_auth if there was an auth problem. I will spend some time this afternoon and see if I can reproduce the problem here.

stephanepechard commented 7 years ago

Got the same problem here, any news on it? Thanks

dezmaeth commented 5 years ago

im having the same issue

/var/lib/gems/2.5.0/gems/slackcat-0.2.5/bin/slackcat:17:in 'block in get_objects': error retrieving channels from channels.list: missing_scope (RuntimeError)

any news??