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?