質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -132,7 +132,7 @@
|
|
132
132
|
|
133
133
|
通信方法を'get'で指定すると、リクエストコードは200が返ってきます。
|
134
134
|
|
135
|
-
|
135
|
+
```
|
136
136
|
|
137
137
|
[2019-10-05 14:23:46] local.ERROR: The payload is invalid. {"exception":"[object] (Illuminate\Contracts\Encryption\DecryptException(code: 0): The payload is invalid. at D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php:195)
|
138
138
|
|
@@ -140,88 +140,92 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
143
|
+
#0 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php(136): Illuminate\Encryption\Encrypter->getJsonPayload(NULL)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
#1 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(154): Illuminate\Encryption\Encrypter->decrypt('eyJpdiI6ImhBeW4...', false)
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
#2 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(136): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->getTokenFromRequest(Object(Illuminate\Http\Request))
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
#3 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(74): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->tokensMatch(Object(Illuminate\Http\Request))
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
#4 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
#5 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
#6 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
#7 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
#8 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
#9 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
#10 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
#11 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
#12 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
#13 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
#14 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(682): Illuminate\Pipeline\Pipeline->then(Object(Closure))
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
#15 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(657): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
#16 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(623): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
#17 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(612): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
#18 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
#19 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
#20 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
#35 {main}
|
228
|
+
|
229
|
+
"}
|
230
|
+
|
231
|
+
```
|
1
質問の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,12 +62,6 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
String state = String.valueOf(postConnection.getResponseCode());
|
66
|
-
|
67
|
-
Log.d("\nSTATES\n", state);
|
68
|
-
|
69
|
-
|
70
|
-
|
71
65
|
getConnection.disconnect();
|
72
66
|
|
73
67
|
postConnection.disconnect();
|
@@ -87,3 +81,147 @@
|
|
87
81
|
}
|
88
82
|
|
89
83
|
```
|
84
|
+
|
85
|
+
---
|
86
|
+
|
87
|
+
■ Laravel側のコードです
|
88
|
+
|
89
|
+
```Route
|
90
|
+
|
91
|
+
Route::get ('/','Laravel01Controller@getIndex');
|
92
|
+
|
93
|
+
Route::post ('/','Laravel01Controller@postIndex');
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
```Controller
|
100
|
+
|
101
|
+
class Laravel01Controller extends Controller
|
102
|
+
|
103
|
+
{
|
104
|
+
|
105
|
+
public function getIndex(Request $request){
|
106
|
+
|
107
|
+
return view('hello');
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
public function postIndex(Request $request){
|
114
|
+
|
115
|
+
return view('hello');
|
116
|
+
|
117
|
+
} }
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```hello
|
124
|
+
|
125
|
+
hello
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
---
|
130
|
+
|
131
|
+
■ エラー情報です
|
132
|
+
|
133
|
+
通信方法を'get'で指定すると、リクエストコードは200が返ってきます。
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
[2019-10-05 14:23:46] local.ERROR: The payload is invalid. {"exception":"[object] (Illuminate\Contracts\Encryption\DecryptException(code: 0): The payload is invalid. at D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php:195)
|
138
|
+
|
139
|
+
[stacktrace]
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
.#0 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php(136): Illuminate\Encryption\Encrypter->getJsonPayload(NULL)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
.#1 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(154): Illuminate\Encryption\Encrypter->decrypt('eyJpdiI6ImhBeW4...', false)
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
.#2 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(136): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->getTokenFromRequest(Object(Illuminate\Http\Request))
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
.#3 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(74): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->tokensMatch(Object(Illuminate\Http\Request))
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
.#4 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
.#5 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
.#6 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
.#7 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
.#8 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
.#9 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
.#10 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
.#11 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
.#12 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
.#13 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
.#14 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(682): Illuminate\Pipeline\Pipeline->then(Object(Closure))
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
.#15 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(657): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
.#16 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(623): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.#17 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Routing\Router.php(612): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
.#18 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
.#19 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
.#20 D:\privatePro\laravel\larave01\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
```
|