Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

"no implicit conversion of Array into String" with client.auth_test

オープン
#115 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby
領域
api, backend

調査の方向性

Start with the README instructions and the Slack.configure block shown in the report, then trace the client.auth_test call in the Ruby Slack Web API client. Reproduce the Heroku deployment error while comparing it with the successful client.files_upload call. Done means identifying the cause of the Array-to-String error and documenting or fixing the affected request path.

索引モデルが issue の本文から書いたものです。

説明

bug? question

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!

主要言語
Ruby
スター
1.3k
フォーク
223
平均マージ
3時間 42分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

slack-ruby/slack-ruby-client のほかの issue

slack-ruby/slack-ruby-client の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。