背景&操作步骤
做了什么操作后,出现的该问题
-
按照操作文档配置了自定义事件,但是调用时好像报错,不确定是否配置有误。
-
配置事件声明
-
在函数逻辑中触发事件
-
自定义事件中订阅
-
在页面中触发
然后就报错了
后台日志:
[2025-11-28 16:03:52][1903107][129456474914496][ERROR][exceptions.py:38][handleException]: [6df79859fc1549d69dfbd54a75a64dc2] ‘NoneType’ object has no attribute ‘update’
Traceback (most recent call last):
File “jit.elements.element”, line 34, in wrapper
File “services.Meta.base”, line 93, in requestHandle
File “services.Meta.base”, line 64, in wrapper
File “/data/JitNode/home/environs/JED_XDo2kzZ9Qq/tungstec/AI_Manufacturing/0_0_0/services/dataProcessing/service.py”, line 8, in clientFilingUnitProcessing
app.event.publish(sender = “services.dataProcessing.clientFilingUnitProcessing”, args = {})
File “events.Meta.engine”, line 188, in publish
AttributeError: ‘NoneType’ object has no attribute ‘update’
[2025-11-28 16:03:52][1903107][129456474914496][DEBUG][jit.elements.stack:194][exit]: [6df79859fc1549d69dfbd54a75a64dc2] Execute element onAppExit
[2025-11-28 16:03:52][1903107][129456474914496][ERROR][jit.elements.element:25][wrapper]: [6df79859fc1549d69dfbd54a75a64dc2] {“code”: 20005, “reason”: “Element services.dataProcessing [数据处理] failed. Check element code or parameters. Error: 访问了None对象不存在的属性update,在文件events.Meta.engine第188行,异常代码:”}
Traceback (most recent call last):
File “jit.elements.element”, line 34, in wrapper
File “services.Meta.base”, line 93, in requestHandle
File “services.Meta.base”, line 64, in wrapper
File “/data/JitNode/home/environs/JED_XDo2kzZ9Qq/tungstec/AI_Manufacturing/0_0_0/services/dataProcessing/service.py”, line 8, in clientFilingUnitProcessing
app.event.publish(sender = “services.dataProcessing.clientFilingUnitProcessing”, args = {})
File “events.Meta.engine”, line 188, in publish
AttributeError: ‘NoneType’ object has no attribute ‘update’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “jit.elements.element”, line 23, in wrapper
File “interceptors.Http.lifecycle”, line 66, in onAppExit
File “jit.runenvirons.web”, line 248, in handleAsf
File “jit.elements.stack”, line 253, in handleRequest
File “jit.elements.app”, line 1116, in handleRequest
File “jit.elements.element”, line 324, in requestHandle
File “jit.elements.element”, line 38, in wrapper
File “jit.elements.element”, line 68, in elementExceptHandler
jit.errcode.Code: {“code”: 20005, “reason”: “Element services.dataProcessing [数据处理] failed. Check element code or parameters. Error: 访问了None对象不存在的属性update,在文件events.Meta.engine第188行,异常代码:”}





