MongoPoolClosedError and Illegal State Transition Error

discord user avatar
denolfe
4 months ago
5

This happens locally?

  • default discord avatar
    carversen4 months ago

    Yes, locally

  • discord user avatar
    denolfe
    4 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
    carversen4 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
    mikecebul4 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
    carversen4 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 help straight from the Payload team with an Enterprise License.