Skip to content

mongo-client:Multi threaded access requested by thread Thread[] but is not allowed for language(s) js #601

Description

@darrenweb

Hi
I use vertx-mongo-client in es4x to save data.
npm start and open the browser,
if i just refresh the browser once (send a request), the data will be saved to mongodb normally, and there is no abnormal prompt,
but if i refresh the browser quickly twice (send 2 requests ), the following error will be prompted, and the data has not been saved to mongodb.
The following is the code, what do I need to do so that multiple requests can still be saved in the mongodb?

Thanks!

20230418105005

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions