簡體   English   中英

未捕獲(承諾):狀態響應:Angular2 / Ionic2中的0

[英]Uncaught (in promise): Response with status: 0 in Angular2/Ionic2

我已經將我的應用程序鏈接到NodeJS服務器,在獲取請求后(sucsses)我在應用程序上收到錯誤Uncaught (in promise): Response with status: 0 for URL: null

這是該應用程序的最新分支: https//github.com/eshk12/Parabi/tree/DB-LINKED

這是NodeJS服務器: https//github.com/eshk12/parabiNodeJS

我在討論/Services/NetworkServices.ts CreateMedicine() /Services/NetworkServices.ts

函數CreateMedicine()使用其GET參數轉到http://localhost:3000/Medicines/add/並將它們插入數據庫。 但出現未知錯誤。

希望你們可以幫我修復它。

謝謝!

我相信當OPTIONS調用失敗時會發生這種情況。 很可能是由於服務不可用。

選項http:// localhost / api / login net :: ERR_CONNECTION_REFUSED

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM