2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Your URL didn't respond with the value of the challenge parameter.

Posted at

slack APIを使っていたら、flaskのエンドポイントが使えないというエラーが出ました。
これはchallenge parameterを返すようなapiになっていないとokをださないよというもの。
だから、以下のようにpostでくれたchallenge parameterをそのまま返してあげるapiを作ればok!

@app.route("/slack/sample", methods=["POST"])
def slack_sample():
    return request.json["challenge"]
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?