Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

MongoPoolClosedError and Illegal State Transition Error

discord user avatar
denolfe
6 months ago
5

This happens locally?

  • default discord avatar
    carversen6 months ago

    Yes, locally

  • discord user avatar
    denolfe
    6 months ago

    Is this a fresh database as well?



    I'd be curious if you get the same thing if you change the db name in your .env (to make a fresh one) and start up

  • default discord avatar
    carversen6 months ago

    fresh database yes.



    By db name, you mean this, right?

    ...mongodb.net/db-name?retryWrites...


    Changing the db name solved the problem. Any idea what could have happened?

  • default discord avatar
    mikecebul6 months ago

    I get this all the time in development, especially with livePreview. I'm using an Mongo Atlas free M0 cluster. Im guessing there's a lot more calls in dev than in prod which causes the error, but idk.

  • default discord avatar
    carversen6 months ago

    Ah that’s weird but it makes sense

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team..