Angular 2 http service. Get detailed error information

后端 未结 3 2243
不知归路
不知归路 2021-01-04 10:30

Executing Angular2 http call to the offline server doesn\'t provide much info in it\'s \"error response\" object I\'m getting in the Observable\'s .catch(error) operator or

3条回答
  •  囚心锁ツ
    2021-01-04 11:02

    Without digging in the code, my expectation is that if the server is unreachable, then no response can be returned from the server. Therefore the Response object remains its initialized state.

提交回复
热议问题