[Vuejs]-Loopback throws errors Unprocessable Entity

0๐Ÿ‘

422 (Unprocessable Entity) means you make a validation on the data request
and failed or you try insert data directly to database but error occurred cause of data is null and your column not allow null or something else..

so insure your data is correct
If you click the last link in console like in the image ,you will see in network data the response of your request

0๐Ÿ‘

Please go through the following steps :

1)Just update your API endpoint as โ€˜http://localhost:3000/api/Cats/โ€˜.

2)refresh your html file.

Leave a comment