Skip to content

使用事务时出现Cannot read properties of undefined (reading 'release')问题 #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KingM127 opened this issue Mar 12, 2025 · 0 comments

Comments

@KingM127
Copy link

接口的方法上加上@CoolRpcTransaction(),在接口正常执行后,会出现uncaughtException TypeError: Cannot read properties of undefined (reading 'release')错误。
这里handler里面已经删除了一次

Image

setTimout指定时间到了之后又去删除了一次
此时global['moleculer.transactions']已经是空的了
Image

我现在对setTimeout这里的设计比较迷惑,为啥没有像handler里面一样先去判断下对象是否存在再去release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant