How to Extract an Error Object from a Blob API Response in JavaScript
I encountered an issue when I made a GET request in my React project which was supposed to return a file I could download. For the file to download properly, I had to make the response type a blob.
But if an error occurred when the server returns a ...
freecodecamp.org3 min read