#Errors logging in on Vercel

4 messages · Page 1 of 1 (latest)

full sphinx
#

Running into a very strange error that seems to have started happening around 2 weeks ago.
Our setup is Payload running on Vercel, connecting to a Neon database. Whenever we try logging in, we get the following error:

{
    "errors": [
        {
            "name": "g",
            "data": {
                "collection": "users",
                "errors": [
                    {
                        "message": "This field is required.",
                        "path": "email"
                    }
                ]
            },
            "message": "The following field is invalid: email"
        }
    ]
}

However, the data seems to be getting sent over properly – this is the payload:

{"email":"joebloggs@gmail.com", password":"password123"}

The issue seems to be specific to Vercel as it works ok locally, which also suggests there isn't an issue with Neon or Payload itself. Wondering if anyone else has run into this?

proper epoch
#

Hey @full sphinx , I have 2 clients running Payload projects on Vercel + Neon. Both use the default admin login + a custom flow (with a separate collection) for logging users through the mobile app and the web. I haven't this issue so far 🤔 . Do you have anything custom that you think is worth sharing? Can you share a snippet showing 1) which db adapter and the options you are yousing and 2) confirm if you're using the -pooller url from Neon or not.

toxic valley
#

Hey @full sphinx have you made any changes recently? Updated your Payload version or anything like that?