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 JSON object, I’d be unable to get… Continue reading How to Extract an Error Object from a Blob API Response in JavaScript
Tag: fetch
Everything about Data Fetching & the JavaScript Fetch API
The lifeblood of modern web applications is data. They rely on fetching information from various sources to deliver dynamic and interactive experiences. This is where the JavaScript Fetch API comes in – a powerful tool that simplifies how you retrieve data across networks. Making a fetch request. Fetch is a promise based api. To make a fetch request, use… Continue reading Everything about Data Fetching & the JavaScript Fetch API