You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stack trace is truncated in MySQL query runner #11271
When queries fail with MySQL, the stack trace is pointing to typeorm code
Expected Behavior
The stack trace should include the call site before typeorm.
Actual Behavior
The stack trace is terminated inside of the query runner code. Callbacks are resetting the stack.
Steps to reproduce
Set up a MySQL environment
Create a query runner and perform an invalid query.
Observe the stack trace in the thrown error.
My Environment
Dependency
Version
Node.js version
20.15.1
Typescript version
^5.1.3
TypeORM version
0.3.20
Additional Context
#8785 has some related info, but I'm not sure what database they are using. They say that some of the stack issues have been fixed in 0.3.x, but I still see issues with the MySQL driver.
I had a quick look at the Postgres driver, and I see that it doesn't have callbacks in the main query function, hence that should be giving proper stack traces when it throws errors in the main stack.
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
Activity
fix: mysql query stack traces
github-actions commentedon Sep 17, 2025
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
fix: mysql query stack traces
fix: mysql query stack traces
fix: mysql query stack traces
fix: mysql query stack traces