LoginSignup
3
1

More than 5 years have passed since last update.

Aasteria利用時のSlack API「invalid_arg_name」エラーへの対処

Posted at

データ連携基盤のAsteriaを使い、SlackAPIの運用を回しています。

その際、よくぶつかったエラーが「invalid_arg_name」

The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than _. If you get this error, it is typically an indication that you have made a very malformed API call.
https://api.slack.com/methods/chat.postMessage

slackAPIの公式ドキュメントには上記の記載。

パラメータのスペルミスか文字コード的な話かなと考えてたら、
「ストリーム型」をParameterListで渡してなかったのが原因でした。

結構詰まった。乙。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1