Error invalid input syntax on new users #3495
-
Question 💬I've got some issues with the creation of new users. Login is working fine, but it looks like there's an issue with the query that's executed to create the user. I've got the following error:
How to reproduce ☕️Here's my Sequelize configuration:
I've tried to add I have a feeling that there's a mismatch between my model and my DB, but I don't know how to solve it. Contributing 🙌🏽Yes, I am willing to help answer this question in a PR |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Got some progress. I was on the correct direction, but I had to set defaultValue to the id of my User model, find the right way to set a UUID with Sequelize and Postgres, then finally install the UUID extension on my database hosted at Heroku. A lot of things, summed up in 1 line of code :)
Now it's working only with email provider. When it comes to OAuth providers, I can't find the solution, perhaps you can help. For Google, I get the error code
It stops here, nothing else. I see a user created in my database, but the account is not linked. For Facebook, I get the error code
No user is created, no account as well. I suspect something wrong with the model again. But everything looks fine to me and I've got no clear error. @balazsorban44 perhaps you've got an idea. Thanks in advance for your time and help. |
Beta Was this translation helpful? Give feedback.
-
So, the progress so far:
I still have the same errors as above. It's very hard to understand what could cause this. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
The problem for the discussion is solved. I've used Prisma instead of Sequelize and have a clean model now. For the remaining question with Facebook, I've created this question: #3499 |
Beta Was this translation helpful? Give feedback.
So, the progress so far:
I still have the same errors as above. It's very hard to understand what could cause this. Any ideas?