I have linked my app into NodeJS server, after the get request goes(sucsses) I get an error on the app Uncaught (in promise): Response with status: 0 for URL: null
.
This is the lastest branch of the app: https://github.com/eshk12/Parabi/tree/DB-LINKED
And this is the NodeJS server: https://github.com/eshk12/parabiNodeJS
I am talking about the function CreateMedicine()
inside /Services/NetworkServices.ts
.
The function CreateMedicine()
goes to http://localhost:3000/Medicines/add/
with its GET
parameters and insert them to the database.
but unknown error appear.
Hope you guys may help me fix it.
Thanks!