質問編集履歴
3
herokuのログを更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -178,91 +178,31 @@
|
|
178
178
|
|
179
179
|
```
|
180
180
|
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
app[web.1]: [4] -
|
190
|
-
|
191
|
-
app[web.1]: [
|
192
|
-
|
193
|
-
app[web.1]: [4] -
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
app[web.1]: [4]
|
200
|
-
|
201
|
-
app[web.1]: [4]
|
202
|
-
|
203
|
-
app[web.1]: [4]
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
app[web.1]: [4] * Environment: production
|
208
|
-
|
209
|
-
app[web.1]: [4] * Process workers: 2
|
210
|
-
|
211
|
-
app[web.1]: [4] * Listening on tcp://0.0.0.0:23992
|
212
|
-
|
213
|
-
app[web.1]: [4] Use Ctrl-C to stop
|
214
|
-
|
215
|
-
app[web.1]: [4] - Worker 0 (pid: 6) booted, phase: 0
|
216
|
-
|
217
|
-
app[web.1]: [4] - Worker 1 (pid: 20) booted, phase: 0
|
218
|
-
|
219
|
-
heroku[web.1]: State changed from starting to up
|
220
|
-
|
221
|
-
app[web.1]: I, [2018-05-07T03:21:50.725915 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Started GET "/api/messages" for 111.102.179.225 at 2018-05-07 03:21:50 +0000
|
222
|
-
|
223
|
-
app[web.1]: I, [2018-05-07T03:21:50.738076 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Processing by Api::MessagesController#index as HTML
|
224
|
-
|
225
|
-
app[web.1]: D, [2018-05-07T03:21:50.855979 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Message Load (1.7ms) SELECT "messages".* FROM "messages"
|
226
|
-
|
227
|
-
app[web.1]: D, [2018-05-07T03:21:50.948563 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (4.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
|
228
|
-
|
229
|
-
heroku[router]: at=info method=GET path="/api/messages" host=floating-wildwood-37299.herokuapp.com request_id=3d54eeaa-257b-4c67-84cb-11c36ab1413b fwd="111.102.179.225" dyno=web.1 connect=0ms service=303ms status=304 bytes=747 protocol=https
|
230
|
-
|
231
|
-
app[web.1]: D, [2018-05-07T03:21:50.989427 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
|
232
|
-
|
233
|
-
app[web.1]: D, [2018-05-07T03:21:50.998821 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (5.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]]
|
234
|
-
|
235
|
-
app[web.1]: D, [2018-05-07T03:21:51.010172 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (9.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
|
236
|
-
|
237
|
-
app[web.1]: I, [2018-05-07T03:21:51.012850 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Completed 200 OK in 274ms (Views: 1.4ms | ActiveRecord: 76.4ms)
|
238
|
-
|
239
|
-
heroku[router]: at=info method=GET path="/favicon.ico" host=floating-wildwood-37299.herokuapp.com request_id=13c66c50-92eb-4a3e-af48-25dd230aa3ec fwd="111.102.179.225" dyno=web.1 connect=1ms service=4ms status=200 bytes=207 protocol=https
|
240
|
-
|
241
|
-
heroku[router]: at=info method=POST path="/api/messages" host=floating-wildwood-37299.herokuapp.com request_id=0dabffe4-ba53-4f62-a5fe-4949cb1ae643 fwd="111.102.179.225" dyno=web.1 connect=1ms service=42ms status=500 bytes=1891 protocol=https
|
242
|
-
|
243
|
-
app[web.1]: I, [2018-05-07T03:22:00.766917 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Started POST "/api/messages" for 111.102.179.225 at 2018-05-07 03:22:00 +0000
|
244
|
-
|
245
|
-
app[web.1]: I, [2018-05-07T03:22:00.772038 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Processing by Api::MessagesController#create as */*
|
246
|
-
|
247
|
-
app[web.1]: I, [2018-05-07T03:22:00.772346 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Parameters: {"text"=>"HYjjf", "message"=>{}}
|
248
|
-
|
249
|
-
app[web.1]: W, [2018-05-07T03:22:00.777758 #6] WARN -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Can't verify CSRF token authenticity.
|
250
|
-
|
251
|
-
app[web.1]: D, [2018-05-07T03:22:00.785306 #6] DEBUG -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] (2.8ms) SELECT COUNT(*) FROM "users"
|
252
|
-
|
253
|
-
app[web.1]: D, [2018-05-07T03:22:00.792565 #6] DEBUG -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] (5.9ms) SELECT COUNT(*) FROM "messages"
|
254
|
-
|
255
|
-
app[web.1]: I, [2018-05-07T03:22:00.793449 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Completed 500 Internal Server Error in 21ms (ActiveRecord: 8.7ms)
|
256
|
-
|
257
|
-
app[web.1]: F, [2018-05-07T03:22:00.795321 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643]
|
258
|
-
|
259
|
-
app[web.1]: F, [2018-05-07T03:22:00.795480 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] ArgumentError (wrong number of arguments (given 0, expected 1)):
|
260
|
-
|
261
|
-
app[web.1]: F, [2018-05-07T03:22:00.795719 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643]
|
262
|
-
|
263
|
-
app[web.1]: F, [2018-05-07T03:22:00.795991 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] app/controllers/api/messages_controller.rb:22:in `create_params'
|
264
|
-
|
265
|
-
app[web.1]: [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] app/controllers/api/messages_controller.rb:17:in `create'
|
181
|
+
heroku[web.1]: State changed from starting to up
|
182
|
+
|
183
|
+
app[web.1]: I, [2018-05-07T03:54:46.083453 #10] INFO -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] Started POST "/api/messages" for 111.102.179.225 at 2018-05-07 03:54:46 +0000
|
184
|
+
|
185
|
+
app[web.1]: I, [2018-05-07T03:54:46.175587 #10] INFO -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] Processing by Api::MessagesController#create as */*
|
186
|
+
|
187
|
+
app[web.1]: I, [2018-05-07T03:54:46.175751 #10] INFO -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] Parameters: {"text"=>"Gkdddddddd", "message"=>{}}
|
188
|
+
|
189
|
+
app[web.1]: D, [2018-05-07T03:54:46.203983 #10] DEBUG -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] (1.8ms) SELECT COUNT(*) FROM "users"
|
190
|
+
|
191
|
+
app[web.1]: D, [2018-05-07T03:54:46.212653 #10] DEBUG -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] (1.6ms) SELECT COUNT(*) FROM "messages"
|
192
|
+
|
193
|
+
app[web.1]: I, [2018-05-07T03:54:46.215776 #10] INFO -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] Completed 500 Internal Server Error in 40ms (ActiveRecord: 27.3ms)
|
194
|
+
|
195
|
+
app[web.1]: F, [2018-05-07T03:54:46.218188 #10] FATAL -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3]
|
196
|
+
|
197
|
+
app[web.1]: F, [2018-05-07T03:54:46.221196 #10] FATAL -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] ArgumentError (wrong number of arguments (given 0, expected 1)):
|
198
|
+
|
199
|
+
app[web.1]: F, [2018-05-07T03:54:46.221323 #10] FATAL -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3]
|
200
|
+
|
201
|
+
app[web.1]: F, [2018-05-07T03:54:46.221439 #10] FATAL -- : [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] app/controllers/api/messages_controller.rb:23:in `create_params'
|
202
|
+
|
203
|
+
app[web.1]: [e6b4a80a-3c75-437a-81af-dcdb5b6180d3] app/controllers/api/messages_controller.rb:18:in `create'
|
204
|
+
|
205
|
+
heroku[router]: at=info method=POST path="/api/messages" host=floating-wildwood-37299.herokuapp.com request_id=e6b4a80a-3c75-437a-81af-dcdb5b6180d3 fwd="111.102.179.225" dyno=web.1 connect=0ms service=152ms status=500 bytes=1891 protocol=https
|
266
206
|
|
267
207
|
```
|
268
208
|
|
2
herokuのlogを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -174,6 +174,98 @@
|
|
174
174
|
|
175
175
|
```
|
176
176
|
|
177
|
+
herokuのlog
|
178
|
+
|
179
|
+
```
|
180
|
+
|
181
|
+
app[api]: Build succeeded
|
182
|
+
|
183
|
+
heroku[web.1]: Restarting
|
184
|
+
|
185
|
+
heroku[web.1]: State changed from up to starting
|
186
|
+
|
187
|
+
heroku[web.1]: Stopping all processes with SIGTERM
|
188
|
+
|
189
|
+
app[web.1]: [4] - Gracefully shutting down workers...
|
190
|
+
|
191
|
+
app[web.1]: [4] === puma shutdown: 2018-05-07 03:21:37 +0000 ===
|
192
|
+
|
193
|
+
app[web.1]: [4] - Goodbye!
|
194
|
+
|
195
|
+
heroku[web.1]: Process exited with status 0
|
196
|
+
|
197
|
+
heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
|
198
|
+
|
199
|
+
app[web.1]: [4] Puma starting in cluster mode...
|
200
|
+
|
201
|
+
app[web.1]: [4] * Version 3.9.1 (ruby 2.4.1-p111), codename: Private Caller
|
202
|
+
|
203
|
+
app[web.1]: [4] * Preloading application
|
204
|
+
|
205
|
+
app[web.1]: [4] * Min threads: 5, max threads: 5
|
206
|
+
|
207
|
+
app[web.1]: [4] * Environment: production
|
208
|
+
|
209
|
+
app[web.1]: [4] * Process workers: 2
|
210
|
+
|
211
|
+
app[web.1]: [4] * Listening on tcp://0.0.0.0:23992
|
212
|
+
|
213
|
+
app[web.1]: [4] Use Ctrl-C to stop
|
214
|
+
|
215
|
+
app[web.1]: [4] - Worker 0 (pid: 6) booted, phase: 0
|
216
|
+
|
217
|
+
app[web.1]: [4] - Worker 1 (pid: 20) booted, phase: 0
|
218
|
+
|
219
|
+
heroku[web.1]: State changed from starting to up
|
220
|
+
|
221
|
+
app[web.1]: I, [2018-05-07T03:21:50.725915 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Started GET "/api/messages" for 111.102.179.225 at 2018-05-07 03:21:50 +0000
|
222
|
+
|
223
|
+
app[web.1]: I, [2018-05-07T03:21:50.738076 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Processing by Api::MessagesController#index as HTML
|
224
|
+
|
225
|
+
app[web.1]: D, [2018-05-07T03:21:50.855979 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Message Load (1.7ms) SELECT "messages".* FROM "messages"
|
226
|
+
|
227
|
+
app[web.1]: D, [2018-05-07T03:21:50.948563 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (4.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
|
228
|
+
|
229
|
+
heroku[router]: at=info method=GET path="/api/messages" host=floating-wildwood-37299.herokuapp.com request_id=3d54eeaa-257b-4c67-84cb-11c36ab1413b fwd="111.102.179.225" dyno=web.1 connect=0ms service=303ms status=304 bytes=747 protocol=https
|
230
|
+
|
231
|
+
app[web.1]: D, [2018-05-07T03:21:50.989427 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
|
232
|
+
|
233
|
+
app[web.1]: D, [2018-05-07T03:21:50.998821 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (5.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]]
|
234
|
+
|
235
|
+
app[web.1]: D, [2018-05-07T03:21:51.010172 #6] DEBUG -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] User Load (9.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]]
|
236
|
+
|
237
|
+
app[web.1]: I, [2018-05-07T03:21:51.012850 #6] INFO -- : [3d54eeaa-257b-4c67-84cb-11c36ab1413b] Completed 200 OK in 274ms (Views: 1.4ms | ActiveRecord: 76.4ms)
|
238
|
+
|
239
|
+
heroku[router]: at=info method=GET path="/favicon.ico" host=floating-wildwood-37299.herokuapp.com request_id=13c66c50-92eb-4a3e-af48-25dd230aa3ec fwd="111.102.179.225" dyno=web.1 connect=1ms service=4ms status=200 bytes=207 protocol=https
|
240
|
+
|
241
|
+
heroku[router]: at=info method=POST path="/api/messages" host=floating-wildwood-37299.herokuapp.com request_id=0dabffe4-ba53-4f62-a5fe-4949cb1ae643 fwd="111.102.179.225" dyno=web.1 connect=1ms service=42ms status=500 bytes=1891 protocol=https
|
242
|
+
|
243
|
+
app[web.1]: I, [2018-05-07T03:22:00.766917 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Started POST "/api/messages" for 111.102.179.225 at 2018-05-07 03:22:00 +0000
|
244
|
+
|
245
|
+
app[web.1]: I, [2018-05-07T03:22:00.772038 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Processing by Api::MessagesController#create as */*
|
246
|
+
|
247
|
+
app[web.1]: I, [2018-05-07T03:22:00.772346 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Parameters: {"text"=>"HYjjf", "message"=>{}}
|
248
|
+
|
249
|
+
app[web.1]: W, [2018-05-07T03:22:00.777758 #6] WARN -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Can't verify CSRF token authenticity.
|
250
|
+
|
251
|
+
app[web.1]: D, [2018-05-07T03:22:00.785306 #6] DEBUG -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] (2.8ms) SELECT COUNT(*) FROM "users"
|
252
|
+
|
253
|
+
app[web.1]: D, [2018-05-07T03:22:00.792565 #6] DEBUG -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] (5.9ms) SELECT COUNT(*) FROM "messages"
|
254
|
+
|
255
|
+
app[web.1]: I, [2018-05-07T03:22:00.793449 #6] INFO -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] Completed 500 Internal Server Error in 21ms (ActiveRecord: 8.7ms)
|
256
|
+
|
257
|
+
app[web.1]: F, [2018-05-07T03:22:00.795321 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643]
|
258
|
+
|
259
|
+
app[web.1]: F, [2018-05-07T03:22:00.795480 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] ArgumentError (wrong number of arguments (given 0, expected 1)):
|
260
|
+
|
261
|
+
app[web.1]: F, [2018-05-07T03:22:00.795719 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643]
|
262
|
+
|
263
|
+
app[web.1]: F, [2018-05-07T03:22:00.795991 #6] FATAL -- : [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] app/controllers/api/messages_controller.rb:22:in `create_params'
|
264
|
+
|
265
|
+
app[web.1]: [0dabffe4-ba53-4f62-a5fe-4949cb1ae643] app/controllers/api/messages_controller.rb:17:in `create'
|
266
|
+
|
267
|
+
```
|
268
|
+
|
177
269
|
|
178
270
|
|
179
271
|
### 補足情報(FW/ツールのバージョンなど)
|
1
追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
swiftからrailsサーバーにpostすると、rejectされる
|
1
|
+
swiftからrailsサーバーにpostすると、rejectされる(error:500)
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
<head>
|
26
26
|
|
27
|
-
<title>
|
27
|
+
<title>We're sorry, but something went wrong (500)</title>
|
28
28
|
|
29
29
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
30
30
|
|
@@ -40,15 +40,13 @@
|
|
40
40
|
|
41
41
|
<body class="rails-default-error-page">
|
42
42
|
|
43
|
-
<!-- This file lives in public/
|
43
|
+
<!-- This file lives in public/500.html -->
|
44
44
|
|
45
45
|
<div class="dialog">
|
46
46
|
|
47
47
|
<div>
|
48
48
|
|
49
|
-
<h1>
|
49
|
+
<h1>We're sorry, but something went wrong.</h1>
|
50
|
-
|
51
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
52
50
|
|
53
51
|
</div>
|
54
52
|
|
@@ -61,8 +59,6 @@
|
|
61
59
|
</html>
|
62
60
|
|
63
61
|
|
64
|
-
|
65
|
-
[Timeline]: Timeline: { "Request Start Time": 547350681.706, "Initial Response Time": 547350681.903, "Request Completed Time": 547350681.904, "Serialization Completed Time": 547350681.904, "Latency": 0.197 secs, "Request Duration": 0.198 secs, "Serialization Duration": 0.001 secs, "Total Duration": 0.198 secs }
|
66
62
|
|
67
63
|
```
|
68
64
|
|