infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.8k stars 184 forks source link

Fix reading status of undefined #296

Open stesvis opened 2 years ago

stesvis commented 2 years ago

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

treeduship commented 2 years ago

I don't think the optional chaining operator is supported in es2015.