forked from githublitao/api_automation_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.log
2102 lines (1978 loc) · 138 KB
/
all.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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2018-07-08 12:41:03,072,2484,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 12:42:14,037,2484,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 12:49:29,607,2484,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 12:50:01,452,2484,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 12:51:32,310,2484,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 12:54:21,763,2484,root,ERROR,confighttp.py:79,'NoneType' object is not subscriptable
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 77, in test_api
param_data = param_data[j]
TypeError: 'NoneType' object is not subscriptable
2018-07-08 12:56:28,775,2484,root,ERROR,confighttp.py:79,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 75, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 12:59:39,896,6856,django.request,ERROR,exception.py:118,Internal Server Error: /api/project/add_project
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\projectList.py", line 105, in post
Project.objects.get(name=data["name"])
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
api_test.models.DoesNotExist: Project matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 117, in post
self.add_project_member(project_serializer.data.get("id"), request.user.pk)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 88, in add_project_member
user = User.objects.get(id=user)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
django.contrib.auth.models.DoesNotExist: User matching query does not exist.
2018-07-08 12:59:40,708,6856,django.server,ERROR,basehttp.py:124,"POST /api/project/add_project HTTP/1.1" 500 18524
2018-07-08 12:59:42,874,6856,root,ERROR,confighttp.py:80,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 76, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 13:01:58,238,5544,django.request,ERROR,exception.py:118,Internal Server Error: /api/project/add_project
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\projectList.py", line 105, in post
Project.objects.get(name=data["name"])
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
api_test.models.DoesNotExist: Project matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 117, in post
self.add_project_member(project_serializer.data.get("id"), request.user.pk)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 88, in add_project_member
user = User.objects.get(id=user)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
django.contrib.auth.models.DoesNotExist: User matching query does not exist.
2018-07-08 13:01:58,578,5544,django.server,ERROR,basehttp.py:124,"POST /api/project/add_project HTTP/1.1" 500 18524
2018-07-08 13:02:00,516,5544,root,ERROR,confighttp.py:80,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 76, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 13:02:43,421,5544,django.request,ERROR,exception.py:118,Internal Server Error: /api/project/add_project
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\projectList.py", line 105, in post
Project.objects.get(name=data["name"])
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
api_test.models.DoesNotExist: Project matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 117, in post
self.add_project_member(project_serializer.data.get("id"), request.user.pk)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 88, in add_project_member
user = User.objects.get(id=user)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
django.contrib.auth.models.DoesNotExist: User matching query does not exist.
2018-07-08 13:02:43,541,5544,django.server,ERROR,basehttp.py:124,"POST /api/project/add_project HTTP/1.1" 500 18524
2018-07-08 13:05:57,877,12520,root,ERROR,confighttp.py:198,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 190, in test_api
code, response_data = post(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 313, in post
response = requests.post(url=address, data=data, headers=header, timeout=8)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 13:05:59,919,12520,root,ERROR,confighttp.py:79,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 75, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 13:06:10,210,12520,django.request,ERROR,exception.py:118,Internal Server Error: /api/project/add_project
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\projectList.py", line 105, in post
Project.objects.get(name=data["name"])
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
api_test.models.DoesNotExist: Project matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1066, in _read_bytes
data = self._rfile.read(num_bytes)
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\mysql\base.py", line 71, in execute
return self.cursor.execute(query, args)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 170, in execute
result = self._query(query)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1103, in _read_query_result
result.read()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1032, in _read_packet
packet_header = self._read_bytes(4)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1074, in _read_bytes
"Lost connection to MySQL server during query (%s)" % (e,))
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 115, in post
_type="添加", operationObject="项目", user=request.user.pk, data=data["name"])
File "E:\project\api_automation_test\api_test\common\common.py", line 213, in record_dynamic
dynamic_serializer.save()
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\serializers.py", line 214, in save
self.instance = self.create(validated_data)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\serializers.py", line 917, in create
instance = ModelClass.objects.create(**validated_data)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 417, in create
obj.save(force_insert=True, using=self.db)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\base.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\base.py", line 759, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\base.py", line 842, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\base.py", line 880, in _do_insert
using=using, raw=raw)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 1125, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\sql\compiler.py", line 1281, in execute_sql
cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 100, in execute
return super().execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 68, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\mysql\base.py", line 71, in execute
return self.cursor.execute(query, args)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 170, in execute
result = self._query(query)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1103, in _read_query_result
result.read()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1032, in _read_packet
packet_header = self._read_bytes(4)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1074, in _read_bytes
"Lost connection to MySQL server during query (%s)" % (e,))
django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query ([WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)')
2018-07-08 13:06:10,750,12520,django.server,ERROR,basehttp.py:124,"POST /api/project/add_project HTTP/1.1" 500 24655
2018-07-08 13:06:39,639,10628,django.request,ERROR,exception.py:118,Internal Server Error: /api/project/add_project
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\projectList.py", line 105, in post
Project.objects.get(name=data["name"])
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
api_test.models.DoesNotExist: Project matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 117, in post
self.add_project_member(project_serializer.data.get("id"), request.user.pk)
File "E:\project\api_automation_test\api_test\api\projectList.py", line 88, in add_project_member
user = User.objects.get(id=user)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 403, in get
self.model._meta.object_name
django.contrib.auth.models.DoesNotExist: User matching query does not exist.
2018-07-08 13:06:39,964,10628,django.server,ERROR,basehttp.py:124,"POST /api/project/add_project HTTP/1.1" 500 18523
2018-07-08 13:06:41,971,10628,root,ERROR,confighttp.py:79,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 75, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 13:07:16,694,10628,root,ERROR,confighttp.py:151,list index out of range
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 147, in test_api
AutomationTestResult.objects.filter(automationCaseApi=api_id[0])))[-1]['fields']["responseData"])
IndexError: list index out of range
2018-07-08 13:07:18,763,10628,root,ERROR,confighttp.py:79,unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 75, in test_api
[0]['fields']["responseData"])
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
2018-07-08 13:07:24,645,10628,root,ERROR,automationCase.py:1062,decoding to str: need a bytes-like object, int found
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\automationCase.py", line 1060, in post
_id=data["id"], project_id=data["project_id"])
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 101, in test_api
parameter[key_] = re.sub(pattern, param_data, value)
File "D:\Program Files (x86)\python\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "D:\Program Files (x86)\python\lib\re.py", line 326, in _subx
template = _compile_repl(template, pattern)
File "D:\Program Files (x86)\python\lib\re.py", line 317, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 879, in parse_template
s = Tokenizer(source)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 227, in __init__
string = str(string, 'latin1')
TypeError: decoding to str: need a bytes-like object, int found
2018-07-08 13:07:27,354,10628,root,ERROR,automationCase.py:1062,decoding to str: need a bytes-like object, int found
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\automationCase.py", line 1060, in post
_id=data["id"], project_id=data["project_id"])
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 101, in test_api
parameter[key_] = re.sub(pattern, param_data, value)
File "D:\Program Files (x86)\python\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "D:\Program Files (x86)\python\lib\re.py", line 326, in _subx
template = _compile_repl(template, pattern)
File "D:\Program Files (x86)\python\lib\re.py", line 317, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 879, in parse_template
s = Tokenizer(source)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 227, in __init__
string = str(string, 'latin1')
TypeError: decoding to str: need a bytes-like object, int found
2018-07-08 13:08:23,805,3924,root,ERROR,confighttp.py:79,'NoneType' object is not subscriptable
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 77, in test_api
param_data = param_data[j]
TypeError: 'NoneType' object is not subscriptable
2018-07-08 13:09:36,414,10804,root,ERROR,confighttp.py:79,'NoneType' object is not subscriptable
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 77, in test_api
param_data = param_data[j]
TypeError: 'NoneType' object is not subscriptable
2018-07-08 13:09:56,836,10804,root,ERROR,automationCase.py:1062,decoding to str: need a bytes-like object, int found
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\automationCase.py", line 1060, in post
_id=data["id"], project_id=data["project_id"])
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 101, in test_api
parameter[key_] = re.sub(pattern, param_data, value)
File "D:\Program Files (x86)\python\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "D:\Program Files (x86)\python\lib\re.py", line 326, in _subx
template = _compile_repl(template, pattern)
File "D:\Program Files (x86)\python\lib\re.py", line 317, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 879, in parse_template
s = Tokenizer(source)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 227, in __init__
string = str(string, 'latin1')
TypeError: decoding to str: need a bytes-like object, int found
2018-07-08 13:11:34,986,10144,root,ERROR,confighttp.py:79,'NoneType' object is not subscriptable
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 77, in test_api
param_data = param_data[j]
TypeError: 'NoneType' object is not subscriptable
2018-07-08 13:12:06,823,8308,root,ERROR,automationCase.py:1062,decoding to str: need a bytes-like object, int found
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\api\automationCase.py", line 1060, in post
_id=data["id"], project_id=data["project_id"])
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 103, in test_api
parameter[key_] = re.sub(pattern, param_data, value)
File "D:\Program Files (x86)\python\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "D:\Program Files (x86)\python\lib\re.py", line 326, in _subx
template = _compile_repl(template, pattern)
File "D:\Program Files (x86)\python\lib\re.py", line 317, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 879, in parse_template
s = Tokenizer(source)
File "D:\Program Files (x86)\python\lib\sre_parse.py", line 227, in __init__
string = str(string, 'latin1')
TypeError: decoding to str: need a bytes-like object, int found
2018-07-08 13:13:23,098,6352,root,ERROR,confighttp.py:79,'NoneType' object is not subscriptable
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 77, in test_api
param_data = param_data[j]
TypeError: 'NoneType' object is not subscriptable
2018-07-08 13:18:49,928,6352,django.request,ERROR,exception.py:118,Internal Server Error: /api/automation/update_name_group
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1066, in _read_bytes
data = self._rfile.read(num_bytes)
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\mysql\base.py", line 71, in execute
return self.cursor.execute(query, args)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 170, in execute
result = self._query(query)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1103, in _read_query_result
result.read()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1032, in _read_packet
packet_header = self._read_bytes(4)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1074, in _read_bytes
"Lost connection to MySQL server during query (%s)" % (e,))
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Program Files (x86)\python\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\django\views\generic\base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 451, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "E:\project\api_automation_test\api_test\api\automationCase.py", line 193, in post
if not pro_data.data["status"]:
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\serializers.py", line 537, in data
ret = super(Serializer, self).data
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\serializers.py", line 262, in data
self._data = self.to_representation(self.instance)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\serializers.py", line 504, in to_representation
ret[field.field_name] = field.to_representation(attribute)
File "D:\Program Files (x86)\python\lib\site-packages\rest_framework\fields.py", line 1816, in to_representation
return method(value)
File "E:\project\api_automation_test\api_test\serializers.py", line 63, in get_dynamicCount
return obj.dynamic_project.all().count()
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\query.py", line 387, in count
return self.query.get_count(using=self.db)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\sql\query.py", line 491, in get_count
number = obj.get_aggregation(using, ['__count'])['__count']
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\sql\query.py", line 476, in get_aggregation
result = compiler.execute_sql(SINGLE)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\models\sql\compiler.py", line 1064, in execute_sql
cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 100, in execute
return super().execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 68, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "D:\Program Files (x86)\python\lib\site-packages\django\db\backends\mysql\base.py", line 71, in execute
return self.cursor.execute(query, args)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 170, in execute
result = self._query(query)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1103, in _read_query_result
result.read()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1032, in _read_packet
packet_header = self._read_bytes(4)
File "D:\Program Files (x86)\python\lib\site-packages\pymysql\connections.py", line 1074, in _read_bytes
"Lost connection to MySQL server during query (%s)" % (e,))
django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query ([WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)')
2018-07-08 13:18:50,236,6352,django.server,ERROR,basehttp.py:124,"POST /api/automation/update_name_group HTTP/1.1" 500 23659
2018-07-08 13:21:30,546,4840,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 13:22:01,291,4840,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
2018-07-08 13:25:28,598,4840,root,ERROR,confighttp.py:197,<class 'requests.exceptions.ReadTimeout'>
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "D:\Program Files (x86)\python\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\Program Files (x86)\python\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\Program Files (x86)\python\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\Program Files (x86)\python\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\python\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\Program Files (x86)\python\lib\site-packages\urllib3\connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=8888): Read timed out. (read timeout=8)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 187, in test_api
code, response_data = get(header, url, request_parameter_type, parameter)
File "E:\project\api_automation_test\api_test\common\confighttp.py", line 336, in get
response = requests.get(url=address, params=data, headers=header, timeout=8, allow_redirects=False)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Program Files (x86)\python\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)