Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Catch exception error but without http error code #131

Closed
@leotu

Description

@leotu

Document say that when http response error would return statusCode (404, 304, 500,...)
i.e,

fetch('GET', url, headers)
      .then((response) => {  // when response status code is 200
         ...
      })
      .catch((errorMessage, statusCode) => {   // Status code is not 200
                            ^^^^^^^^^^^^
          ...
      }

But I always get undefined for variable: "statusCode".

Additional Information:
react-native: 0.29.2
react-native-fetch-blob: 0.9.4
iOS: 8.X & 9.X

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions