-
Notifications
You must be signed in to change notification settings - Fork 1
/
error.log
347 lines (347 loc) · 22.5 KB
/
error.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
2018/11/09 16:38:30 http: multiple response.WriteHeader calls
2018/11/09 16:46:02 http: multiple response.WriteHeader calls
2018/11/09 17:28:06 http: multiple response.WriteHeader calls
2018/11/09 17:28:09 http: multiple response.WriteHeader calls
2018/11/09 17:37:25 http: multiple response.WriteHeader calls
2018/11/09 17:38:10 http: multiple response.WriteHeader calls
2018/11/09 17:38:19 http: multiple response.WriteHeader calls
2018/11/09 17:48:34 http: multiple response.WriteHeader calls
2018/11/09 17:51:24 http: multiple response.WriteHeader calls
2018/11/09 17:51:49 http: multiple response.WriteHeader calls
2018/11/09 17:51:49 http: panic serving [::1]:52332: map[Content-Type:[application/json]]
goroutine 19 [running]:
net/http.(*conn).serve.func1(0xc42027a000)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x9a38a0, 0xc4201cb680)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.checkApiKey(0xa8a040, 0xc420284000, 0xc420130400, 0xc420055810)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/controller.go:75 +0x202
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a040, 0xc420284000, 0xc420130400)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:18 +0x5d
net/http.HandlerFunc.ServeHTTP(0xa02be8, 0xa8a040, 0xc420284000, 0xc420130400)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42009cd20, 0xa8a040, 0xc420284000, 0xc420130400)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc4201ceb40, 0xa8a040, 0xc420284000, 0xc420282000)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4201cd040, 0xa8a040, 0xc420284000, 0xc420282000)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42027a000, 0xa8a5c0, 0xc420238080)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/09 17:52:20 http: multiple response.WriteHeader calls
2018/11/09 17:52:20 http: panic serving [::1]:52582: abc
goroutine 24 [running]:
net/http.(*conn).serve.func1(0xc420200320)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x919e40, 0xa80880)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.checkApiKey(0xa8a040, 0xc420278000, 0xc420272200, 0xc420055810)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/controller.go:75 +0x1f4
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a040, 0xc420278000, 0xc420272200)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:18 +0x5d
net/http.HandlerFunc.ServeHTTP(0xa02be8, 0xa8a040, 0xc420278000, 0xc420272200)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420194050, 0xa8a040, 0xc420278000, 0xc420272200)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc42025c120, 0xa8a040, 0xc420278000, 0xc420148200)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4202560d0, 0xa8a040, 0xc420278000, 0xc420148200)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc420200320, 0xa8a5c0, 0xc4200acac0)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/09 17:52:35 http: multiple response.WriteHeader calls
2018/11/09 17:52:55 http: multiple response.WriteHeader calls
2018/11/09 18:00:15 http: panic serving [::1]:55912: EOF
goroutine 50 [running]:
net/http.(*conn).serve.func1(0xc420270000)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a080, 0xc4202960e0, 0xc420284500)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:30 +0x666
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a080, 0xc4202960e0, 0xc420284500)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42008ed20, 0xa8a080, 0xc4202960e0, 0xc420284500)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc4201bebd0, 0xa8a080, 0xc4202960e0, 0xc420284300)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4201c0b60, 0xa8a080, 0xc4202960e0, 0xc420284300)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc420270000, 0xa8a600, 0xc420274040)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:38 http: panic serving [::1]:44244: EOF
goroutine 50 [running]:
net/http.(*conn).serve.func1(0xc4202a2000)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202b2000, 0xc420296200)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202b2000, 0xc420296200)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202b2000, 0xc420296200)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202b2000, 0xc4202ac000)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202b2000, 0xc4202ac000)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4202a2000, 0xa8a620, 0xc4202a6040)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:39 http: panic serving [::1]:44248: EOF
goroutine 9 [running]:
net/http.(*conn).serve.func1(0xc4201763c0)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202d6000, 0xc420130400)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202d6000, 0xc420130400)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202d6000, 0xc420130400)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202d6000, 0xc420130200)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202d6000, 0xc420130200)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4201763c0, 0xa8a620, 0xc420074ac0)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:44 http: panic serving [::1]:44252: EOF
goroutine 11 [running]:
net/http.(*conn).serve.func1(0xc420176460)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202b2380, 0xc420296600)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202b2380, 0xc420296600)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202b2380, 0xc420296600)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202b2380, 0xc420130500)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202b2380, 0xc420130500)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc420176460, 0xa8a620, 0xc420074c40)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:46 http: panic serving [::1]:44256: EOF
goroutine 39 [running]:
net/http.(*conn).serve.func1(0xc42025e500)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202d60e0, 0xc420130800)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202d60e0, 0xc420130800)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202d60e0, 0xc420130800)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202d60e0, 0xc420296700)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202d60e0, 0xc420296700)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42025e500, 0xa8a620, 0xc4202604c0)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:50 http: panic serving [::1]:44260: EOF
goroutine 14 [running]:
net/http.(*conn).serve.func1(0xc4201765a0)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202b2460, 0xc420296a00)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202b2460, 0xc420296a00)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202b2460, 0xc420296a00)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202b2460, 0xc420130900)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202b2460, 0xc420130900)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4201765a0, 0xa8a620, 0xc420074dc0)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:18:50 http: panic serving [::1]:44264: EOF
goroutine 42 [running]:
net/http.(*conn).serve.func1(0xc42025e640)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0x93ca60, 0xc42001e070)
/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/jacky-htg/api-news/controllers.AuthGetTokenHandler(0xa8a0a0, 0xc4202b2540, 0xc420296d00)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/authController.go:29 +0x64e
net/http.HandlerFunc.ServeHTTP(0xa02c08, 0xa8a0a0, 0xc4202b2540, 0xc420296d00)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc420266000, 0xa8a0a0, 0xc4202b2540, 0xc420296d00)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc420268120, 0xa8a0a0, 0xc4202b2540, 0xc420296b00)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc42025c0d0, 0xa8a0a0, 0xc4202b2540, 0xc420296b00)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42025e640, 0xa8a620, 0xc420260640)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/10 13:24:47 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:24:47 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:26 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:26 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:28 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:28 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:35 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/10 13:29:35 Error 1054: Unknown column 'is_reset_password' in 'field list'
2018/11/11 12:17:08 Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id desc LIMIT 50 OFFSET 0' at line 1
2018/11/11 15:35:50 Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id desc LIMIT 50 OFFSET 0' at line 1
2018/11/11 15:35:50 http: multiple response.WriteHeader calls
2018/11/11 17:04:23 Error 1062: Duplicate entry 'Nasional' for key 'categories_title_index'
2018/11/11 21:36:30 Error 1292: Incorrect datetime value: '0000-00-00' for column 'publish_date' at row 1
2018/11/11 21:38:57 Error 1292: Incorrect datetime value: '0000-00-00' for column 'publish_date' at row 1
2018/11/11 21:44:02 http: panic serving [::1]:45082: runtime error: invalid memory address or nil pointer dereference
goroutine 18 [running]:
net/http.(*conn).serve.func1(0xc42022c000)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).Close(0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2493 +0x2e
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).ExecContext(0x0, 0xbcdb80, 0xc4200220c8, 0xc4204de6c0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2224 +0x4a
database/sql.(*Stmt).Exec(0x0, 0xc4204de6c0, 0x2, 0x2, 0xbc6fe0, 0xc4201fa100, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2253 +0x65
github.com/jacky-htg/api-news/repositories.storeNewsTopic(0x1, 0xc420254010, 0xc, 0xc42037ec80, 0xc, 0x0, 0x0, 0xc4205d2000, 0x93, 0xc420025380, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:352 +0x2a4
github.com/jacky-htg/api-news/repositories.NewsStore(0x1, 0xc420254010, 0xc, 0xc42037ec80, 0xc, 0x0, 0x0, 0xc4205d2000, 0x93, 0xc420025380, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:341 +0x45b
github.com/jacky-htg/api-news/controllers.NewsCreateHandler(0xbcd540, 0xc4202120e0, 0xc420130400)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/newsController.go:154 +0x32c
net/http.HandlerFunc.ServeHTTP(0xb3df28, 0xbcd540, 0xc4202120e0, 0xc420130400)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42009cd20, 0xbcd540, 0xc4202120e0, 0xc420130400)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc4201cef30, 0xbcd540, 0xc4202120e0, 0xc42023a000)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4201ccd00, 0xbcd540, 0xc4202120e0, 0xc42023a000)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42022c000, 0xbcdb40, 0xc420232040)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/11 21:49:37 http: panic serving [::1]:45088: runtime error: invalid memory address or nil pointer dereference
goroutine 53 [running]:
net/http.(*conn).serve.func1(0xc42022c640)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).Close(0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2493 +0x2e
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).ExecContext(0x0, 0xbcdb80, 0xc4200220c8, 0xc42040e6c0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2224 +0x4a
database/sql.(*Stmt).Exec(0x0, 0xc42040e6c0, 0x2, 0x2, 0xbc6fe0, 0xc4202c25e0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2253 +0x65
github.com/jacky-htg/api-news/repositories.storeNewsTopic(0x1, 0xc4200221a0, 0xc, 0xc4200226a0, 0xc, 0x0, 0x0, 0xc42049c000, 0x93, 0xc4203fa020, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:352 +0x2a4
github.com/jacky-htg/api-news/repositories.NewsStore(0x1, 0xc4200221a0, 0xc, 0xc4200226a0, 0xc, 0x0, 0x0, 0xc42049c000, 0x93, 0xc4203fa020, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:341 +0x45b
github.com/jacky-htg/api-news/controllers.NewsCreateHandler(0xbcd540, 0xc4206220e0, 0xc4204d6400)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/newsController.go:154 +0x32c
net/http.HandlerFunc.ServeHTTP(0xb3df28, 0xbcd540, 0xc4206220e0, 0xc4204d6400)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42009cd20, 0xbcd540, 0xc4206220e0, 0xc4204d6400)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc4201cef30, 0xbcd540, 0xc4206220e0, 0xc4204d6200)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4201ccd00, 0xbcd540, 0xc4206220e0, 0xc4204d6200)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42022c640, 0xbcdb40, 0xc420524380)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/11 21:50:33 http: panic serving [::1]:45114: runtime error: invalid memory address or nil pointer dereference
goroutine 9 [running]:
net/http.(*conn).serve.func1(0xc4201e74a0)
/usr/local/go/src/net/http/server.go:1726 +0xd0
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).Close(0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2493 +0x2e
panic(0xa3a700, 0xee6700)
/usr/local/go/src/runtime/panic.go:502 +0x229
database/sql.(*Stmt).ExecContext(0x0, 0xbcdb80, 0xc4200220c8, 0xc4204b26b0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2224 +0x4a
database/sql.(*Stmt).Exec(0x0, 0xc4204b26b0, 0x2, 0x2, 0xbc6fe0, 0xc420558100, 0x0, 0x0)
/usr/local/go/src/database/sql/sql.go:2253 +0x65
github.com/jacky-htg/api-news/repositories.storeNewsTopic(0x1, 0xc420230480, 0xc, 0xc4203ba750, 0xc, 0x0, 0x0, 0xc420600000, 0x93, 0xc420226120, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:358 +0x2b7
github.com/jacky-htg/api-news/repositories.NewsStore(0x1, 0xc420230480, 0xc, 0xc4203ba750, 0xc, 0x0, 0x0, 0xc420600000, 0x93, 0xc420226120, ...)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/repositories/newsRepository.go:341 +0x45b
github.com/jacky-htg/api-news/controllers.NewsCreateHandler(0xbcd540, 0xc420242000, 0xc42024e100)
/home/rebelworks/work/go/src/github.com/jacky-htg/api-news/controllers/newsController.go:154 +0x32c
net/http.HandlerFunc.ServeHTTP(0xb3df28, 0xbcd540, 0xc420242000, 0xc42024e100)
/usr/local/go/src/net/http/server.go:1947 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42009cd20, 0xbcd540, 0xc420242000, 0xc42024e100)
/home/rebelworks/work/go/src/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc4201cefc0, 0xbcd540, 0xc420242000, 0xc420130300)
/home/rebelworks/work/go/src/github.com/gorilla/handlers/cors.go:52 +0xa3b
net/http.serverHandler.ServeHTTP(0xc4201ccb60, 0xbcd540, 0xc420242000, 0xc420130300)
/usr/local/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc4201e74a0, 0xbcdb40, 0xc420074cc0)
/usr/local/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2795 +0x27b
2018/11/11 21:54:21 sql: expected 12 destination arguments in Scan, not 11
2018/11/11 21:55:42 sql: Scan error on column index 7: unsupported Scan, storing driver.Value type <nil> into type *time.Time
2018/11/11 21:59:58 sql: Scan error on column index 9: converting driver.Value type <nil> ("<nil>") to a uint: invalid syntax
2018/11/11 22:02:52 Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1
2018/11/11 22:05:05 Error 1054: Unknown column 'topic_id' in 'field list'
2018/11/11 23:02:50 Error 1052: Column 'id' in field list is ambiguous
2018/11/11 23:09:33 Error 1054: Unknown column 'news.title' in 'where clause'
2018/11/11 23:10:39 Error 1054: Unknown column 'topic.title' in 'where clause'
2018/11/11 23:11:03 Error 1054: Unknown column 'topic.title' in 'where clause'
2018/11/11 23:11:38 Error 1054: Unknown column 'topic.title' in 'where clause'
2018/11/11 23:22:41 http: multiple response.WriteHeader calls
2018/11/11 23:24:44 http: multiple response.WriteHeader calls
2018/11/12 00:17:23 Error 1146: Table 'api_news.articles' doesn't exist
2018/11/12 00:18:00 Error 1146: Table 'api_news.articles' doesn't exist
2018/11/14 08:46:13 invalid connection
2018/11/21 09:08:56 unexpected EOF
2018/11/21 09:14:33 unexpected EOF
2018/11/21 09:16:47 unexpected EOF
2018/11/21 09:19:33 unexpected EOF
2018/11/21 09:19:42 unexpected EOF
2018/11/21 09:20:43 unexpected EOF
2018/11/21 09:21:22 unexpected EOF
2018/11/21 09:24:21 unexpected EOF
2018/11/21 09:25:20 unexpected EOF
2018/11/21 09:26:06 unexpected EOF
2018/11/21 09:26:23 unexpected EOF
2018/11/21 09:27:34 unexpected EOF
2018/11/21 09:27:38 unexpected EOF
2018/11/21 09:29:37 unexpected EOF
2018/11/21 09:29:44 unexpected EOF
2018/11/21 09:29:45 unexpected EOF
2018/11/21 09:39:13 Error 1406: Data too long for column 'image' at row 1
2018/11/21 09:41:08 Error 1406: Data too long for column 'image' at row 1
2018/11/21 09:43:49 invalid JPEG format: missing SOI marker
2018/11/21 09:50:05 remove ./: invalid argument
2018/11/21 09:54:37 remove ./: invalid argument
2018/11/21 09:55:57 remove ./: invalid argument
2018/11/21 09:57:49 remove ./: invalid argument
2018/11/21 10:08:18 remove ./: invalid argument
2018/11/21 10:09:17 remove ./: invalid argument