LoginSignup
5
5

More than 5 years have passed since last update.

GAE & Go & Line-Botでハマったところ

Last updated at Posted at 2016-04-12

こちらの手順を参考にやってみた

GAE/GoでLINE Bot Trial

でも、初めてGAE & Go つかってログの見かたにハマったのでメモ

Callbackにhttps://{project-id}.appspot.com:443/line/receiveを登録したら
一度メッセージを送って
{"statusCode":"427","statusMessage":"Your ip address [IP Address] is not allowed to access this API."}
エラーメッセージに書かれてるIP Addressをwhitelistに登録すれば動きます。

ここが具体的にわからんかった。。
LINEからBOTに適当にコメントを送信したあと、GAEのログを見ていく。

実際には ↓ のとおり、 GAEのログを開いていくと protoPayload: の中に line があった
GAE-LOG.png

このIPをwhitelistに登録して完了!!

5
5
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
5
5