apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

Axios + standardized errors + request/response transforms.

Results 46 apisauce issues
Sort by recently updated
recently updated
newest added

When the response is ERR_CONNECTION_REFUSED (in my case, server down), every API call throws an exception. My understanding was that we shouldn't need to wrap calls inside a `try/catch` block,...

help wanted
bug

When app cannot connect to API, the timeout will not be working on android. But ios still run ok. ![timeout](https://user-images.githubusercontent.com/12009276/41074638-3eee92d6-6a33-11e8-87f8-ba98d932a427.png) my package.json ``` "apisauce": "^0.14.3", "react-native": "0.54.2", "react": "16.3.0-alpha.1", "redux-saga":...

help wanted
bug
Hacktoberfest

I believe this will fix the error: Cannot read properties of undefined (reading 'status') when there is no response (server down).

how to retry in addAsyncResponseTransform

I send a POST request to a API server and the request sent 2 times. The initial request succeed because the records are inserted in the database then I get...

This fixes vulnerabilities in the axios library: [CVE-2022-0155](https://nvd.nist.gov/vuln/detail/CVE-2022-0155) and [CVE-2022-0536](https://nvd.nist.gov/vuln/detail/CVE-2022-0536). There are a couple of things to consider if this PR is worth merging: * There are a [few breaking...

This is error stack: ``` "Error: Network Error at createError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:202353:17) at XMLHttpRequest.handleError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:202261:16) at XMLHttpRequest.dispatchEvent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:30335:27) at XMLHttpRequest.setReadyState (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:30088:20) at XMLHttpRequest.__didCompleteResponse (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:29915:16) at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:30025:47 at RCTDeviceEventEmitter.emit (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:5939:37) at MessageQueue.__callFunction...

question

We observed this after upgrading `apisauce` from `1.1.2` to `2.1.5` We had code similar to `apisauceInstance.post('some-url', null, configObject)` which then resulted in a `null` (as a four-letter string) being sent...