Skip to content

Running a query multiple times in a row occasionally gives: Query runner already released. Cannot run queries anymore. #3352

Open
@hsensh

Description

Describe the bug
I am running a query to fetch all data needed on site load. When the query runs multiple times in a row (when I refresh the page very past), it OCCASIONALLY gives me this error: Query runner already released. Cannot run queries anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Run a complex query on the browser through API (not Postman or API client, I could never reproduce it with Postman)
  2. Hope to God error appears

Expected behavior
I believe it is an issue with how something is configured in TypeORM, but it should not have this behavior.

Environment (please complete the following information):

  • @vendure/core version: 3.1.2
  • Nodejs version: 18
  • Database (mysql/postgres etc): MySQL

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions