slack-ruby-client
slack-ruby-client copied to clipboard
"no implicit conversion of Array into String" with client.auth_test
Hi,
I followed the instructions in the Readme but it's throwing an error at some point. My code is deployed on Heroku. Here's the piece of code in question:
Slack.configure do |config|
config.token = ENV['SLACK_API_TOKEN']
end
client = Slack::Web::Client.new
client.auth_test #Error happens at this line.
The error is (displayed on Slack):
<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</TITLE></HEAD>
<BODY>
<H1>Internal Server Error</H1>
no implicit conversion of Array into String
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16) at
[myapp].herokuapp.com:443
</ADDRESS>
</BODY>
</HTML>
Somehow, I can still call client.files_upload() after auth_test with no problem (token is correct) but I still get the error above displayed on Slack. What's wrong? Thanks!
This looks suspicious. The error is displayed in Slack? It feels like those two are unrelated, try to isolate the pieces? Basically we want a stack trace from the error.