teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー文を追記しました

2020/12/11 07:43

投稿

python.com
python.com

スコア1

title CHANGED
File without changes
body CHANGED
@@ -5,8 +5,8 @@
5
5
  flask run は実行できています
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
-
9
- error=Error.new_from_json_dict(response.json)
8
+ error=Error.new_from_json_dict(response.json)
9
+ linebot.exceptions.LineBotApiError: LineBotApiError: status_code=400, request_id=fcb7dd96-c6bd-4113-8b7b-ad64fdb3284b, error_response={"details": [{"message": "May not be empty", "property": "messages[0].altText"}, {"message": "May not be empty", "property": "messages[0].contents"}], "message": "The request body has 2 error(s)"}, headers={'Server': 'openresty', 'Date': 'Thu, 10 Dec 2020 08:00:33 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-line-request-id': 'fcb7dd96-c6bd-4113-8b7b-ad64fdb3284b', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY'}
10
10
  ### 該当のソースコード
11
11
 
12
12
  from flask import Flask, request, abort