質問編集履歴
5
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,7 +57,14 @@
|
|
57
57
|
}
|
58
58
|
```
|
59
59
|
### 試したこと
|
60
|
+
```ここに言語を入力
|
61
|
+
print(f"CHANNEL_ACCESS_TOKEN: {CHANNEL_ACCESS_TOKEN}")
|
62
|
+
print(f"USER_ID:{USER_ID}")
|
63
|
+
CHANNEL_ACCESS_TOKEN: your_token
|
64
|
+
USER_ID:your_user_id
|
65
|
+
一語一句そのまま記載する。AIに聞いた程度だが正常っぽい
|
60
66
|
|
67
|
+
```
|
61
68
|
・コピペし間違えてないか?再発行してクリップボートボタンをクリックしたので間違っていないと思われる。
|
62
69
|
・参考にしたサンプルプログラムと違いがないか確認したが間違ってなかった。
|
63
70
|
・jsonファイルの形式の確認→正しい形式で記述出来ていたし、デバッグモードで実行し辞書として取り出せていると考えた。
|
4
補足2
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,5 +65,6 @@
|
|
65
65
|
### 補足情報(FW/ツールのバージョンなど)
|
66
66
|
python3.8系
|
67
67
|
VScodeで開発,windows PowerShell,win11です。
|
68
|
+
https://www.youtube.com/watch?v=T0KAE2kq2Xo&t=2007s(参考にした動画)
|
68
69
|
よろしくお願いします。
|
69
70
|
|
3
補足2
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,6 @@
|
|
64
64
|
|
65
65
|
### 補足情報(FW/ツールのバージョンなど)
|
66
66
|
python3.8系
|
67
|
-
VScodeで開発
|
67
|
+
VScodeで開発,windows PowerShell,win11です。
|
68
68
|
よろしくお願いします。
|
69
69
|
|
2
補足情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,9 @@
|
|
26
26
|
main()
|
27
27
|
linebot.exceptions.LineBotApiError: LineBotApiError: status_code=401, request_id=1dc29e2a-6d8a-4260-8c38-19c64b9b0880, error_response={"details": [], "message": "Authentication failed. Confirm that the access token in the authorization header is valid."}, headers={'server': 'legy', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'content-type': 'application/json', 'date': 'Wed, 15 Nov 2023 18:56:46 GMT', 'expires': '0', 'pragma': 'no-cache', 'www-authenticate': 'Bearer error="invalid_token", error_description="invalid token"', 'x-content-type-options': 'nosniff', 'x-frame-options': 'DENY', 'x-line-request-id': '1dc29e2a-6d8a-4260-8c38-19c64b9b0880', 'x-xss-protection': '1; mode=block', 'content-length': '104'}
|
28
28
|
|
29
|
+
```
|
30
|
+
実際のjsonファイル全角スペースなども入っていない。また、値も再発行して新しくコピペした。(クリップボートのボタンそのままクリック)加えて、jsonファイルの形式もしっかり守った。VScodeでエラーが検知されていないので正しいと思う。
|
31
|
+

|
29
32
|
|
30
33
|
```
|
31
34
|
### 該当のソースコード
|
1
マークダウンしただけ
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
linebot.exceptions.LineBotApiError: LineBotApiError: status_code=401, request_id=1dc29e2a-6d8a-4260-8c38-19c64b9b0880, error_response={"details": [], "message": "Authentication failed. Confirm that the access token in the authorization header is valid."}, headers={'server': 'legy', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'content-type': 'application/json', 'date': 'Wed, 15 Nov 2023 18:56:46 GMT', 'expires': '0', 'pragma': 'no-cache', 'www-authenticate': 'Bearer error="invalid_token", error_description="invalid token"', 'x-content-type-options': 'nosniff', 'x-frame-options': 'DENY', 'x-line-request-id': '1dc29e2a-6d8a-4260-8c38-19c64b9b0880', 'x-xss-protection': '1; mode=block', 'content-length': '104'}
|
28
28
|
|
29
29
|
|
30
|
-
|
30
|
+
```
|
31
31
|
### 該当のソースコード
|
32
32
|
|
33
33
|
```ここに言語名を入力
|