error.log
5.17 KB
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
14:00:52 ERROR [X] DWS Sync failed for task_id=manual_dws_sync: (1054, "Unknown column 'report_date' in 'where clause'") [etl_service.py:326]
Traceback (most recent call last):
File "D:\work1\data-analyze-webui\app\services\etl_service.py", line 291, in run_dw_sync
cur.execute(f"DELETE FROM `{table_name}` WHERE report_date BETWEEN %s AND %s", (start_date, end_date))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 157, in execute
result = self._query(query)
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
~~~~~~~~~~^^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 575, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 826, in _read_query_result
result.read()
~~~~~~~~~~~^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 1203, in read
first_packet = self.connection._read_packet()
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 782, in _read_packet
packet.raise_for_error()
~~~~~~~~~~~~~~~~~~~~~~^^
File "D:\Python313\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'report_date' in 'where clause'")
14:07:54 ERROR [X] ODS Sync failed for task_id=manual_ods_sync: (1048, "Column 'merchant_id' cannot be null") [etl_service.py:220]
Traceback (most recent call last):
File "D:\work1\data-analyze-webui\app\services\etl_service.py", line 177, in run_ods_sync
cur.executemany(upsert_sql, data_tuples)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 186, in executemany
return self._do_execute_many(
~~~~~~~~~~~~~~~~~~~~~^
q_prefix,
^^^^^^^^^
...<4 lines>...
self._get_db().encoding,
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 219, in _do_execute_many
rows += self.execute(sql + postfix)
~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 157, in execute
result = self._query(query)
File "D:\Python313\Lib\site-packages\pymysql\cursors.py", line 328, in _query
conn.query(q)
~~~~~~~~~~^^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 575, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 826, in _read_query_result
result.read()
~~~~~~~~~~~^^
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 1203, in read
first_packet = self.connection._read_packet()
File "D:\Python313\Lib\site-packages\pymysql\connections.py", line 782, in _read_packet
packet.raise_for_error()
~~~~~~~~~~~~~~~~~~~~~~^^
File "D:\Python313\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "D:\Python313\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1048, "Column 'merchant_id' cannot be null")
14:49:20 ERROR Failed to call LLM for schema analysis: [llm_service.py:90]
14:50:21 ERROR Failed to call LLM for schema analysis: [llm_service.py:90]
14:50:21 ERROR Failed to process dynamic upload: Object of type datetime is not JSON serializable [excel_service.py:105]
Traceback (most recent call last):
File "D:\work1\data-analyze-webui\app\services\excel_service.py", line 73, in process_dynamic_upload
schema = await LLMService.analyze_excel_schema(sheet, headers_raw, sample_data_raw, upload_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\work1\data-analyze-webui\app\services\llm_service.py", line 31, in analyze_excel_schema
原始表头 (可能包含多行): {json.dumps(headers, ensure_ascii=False)}
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python313\Lib\json\__init__.py", line 242, in dumps
**kw).encode(obj)
~~~~~~^^^^^
File "D:\Python313\Lib\json\encoder.py", line 202, in encode
chunks = self.iterencode(o, _one_shot=True)
File "D:\Python313\Lib\json\encoder.py", line 263, in iterencode
return _iterencode(o, 0)
File "D:\Python313\Lib\json\encoder.py", line 182, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
f'is not JSON serializable')
TypeError: Object of type datetime is not JSON serializable