Ionic 3 Login Authentication Using API - Cannot read property 'json' of null

后端 未结 4 1258
情深已故
情深已故 2021-01-17 18:14

I am doing authentication in Ionic 3 using API but In the login process, it is showing error: Cannot read property \'json\' of null

This is my provi

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-17 18:53

    Also, wouldn't it be easier to just return observable instead of a promise?

    return this.http.post(apiUrl + type, JSON.stringify(credentials), {headers: headers});
    

提交回复
热议问题