Not able to run code

This post was flagged by the community and is temporarily hidden.

Upload your code on github, send the link

https://github.com/pushpendrakr/started-github

See the error you get in catch block, log them and try to resolve it.

it is showing what i have written in catch block of promise:“could not add product” and similarly for users.
When does it enter into catch block of promise?
In lecture arnav sir says when there is some problem in database but according to me database is fine, so any other case when it enters into catch

In the catch block, write console.log(err) and see what you get in terminal.

it is saying field ‘‘id doesn’t have a default value’’

its resolved now, the autoincrement was not being set true may be due to some spelling mistake.

Nice, always use console.log to see the errors, data etc while debugging, it makes it easier to find the error.