I am getting error in api when send data in json format on live server in Adonis 5. #1403
-
Hi Team, My Data format like {"email":"[email protected]","mobile":"1234567890","verification": true} Get data from request const data=request.all()
const email=data.email
const mobile=data.mobile Please suggest me what am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Can you share your |
Beta Was this translation helpful? Give feedback.
-
Have you modified the bodyparser.ts? |
Beta Was this translation helpful? Give feedback.
-
@pk4all thanks a lot for reporting this issue, I went crazy for like 2 hours looking for an explanation why this started to happen, I began to experience the same issue today, and probably started to happen about two or three days ago, but i was aware of the issue today after seeing logs with error. I didn't performed any code update, or no environment change. I'm using Heroku and Adonis 5 also and my app was already deployed previously, it's been working fine for about 2 or 3 months without any issues. So I think this was caused because probably Heroku (in my case) uses internally AWS EC2 instances and RDS instances for the Database given that i'm using PG for the DB and the error seems to be after querying the database. Very strange error indeed. Anyways, kudos and love to @thetutlage and @RomainLanz using |
Beta Was this translation helpful? Give feedback.
Can you share your
package.json
file?