About 81 results
Open links in new tab
  1. javascript - Axios handling errors - Stack Overflow

    Apr 22, 2018 · I'm trying to understand javascript promises better with Axios. What I pretend is to handle all errors in Request.js and only call the request function from anywhere without having to use …

  2. Axios - DELETE Request With Request Body and Headers?

    Jun 28, 2018 · 262 axios.delete does supports both request body and headers. It accepts two parameters: url and optional config. You can use config.data to set the request body and headers as …

  3. How to use axios to make an https call? - Stack Overflow

    Why a downvote? Axios had (has?) an issue where specifying the port number forced it to use the https agent rather than the http agent.

  4. Passing headers with axios POST request - Stack Overflow

    Jun 19, 2017 · When you are using the Axios library and to pass custom headers, you need to construct headers as an object with the key name 'headers'. The 'headers' key should contain an object, here it …

  5. How to set header and options in axios? - Stack Overflow

    Aug 9, 2017 · I'm using axios 1.7.9 and firefox 136. For me only { responseType: 'text' } option helped me. headers are always ignored and used only to set custom request headers.

  6. How to download a .zip file that I recieve from an HTTP response …

    Feb 3, 2022 · I would suggest fetch over Axios in concern of the ZIP file, because sometimes the response in an Axios request is not accurate, and you might fall into corrupted ZIP file while …

  7. javascript - Returning data from Axios API - Stack Overflow

    Feb 26, 2018 · I am trying to use a Node.JS application to make and receive API requests. It does a get request to another server using Axios with data it receives from an API call it receives. The second …

  8. How to configure axios to use SSL certificate? - Stack Overflow

    Jul 16, 2018 · I'm trying to make a request with axios to an api endpoint and I'm getting the following error: Error: unable to verify the first certificate It seems the https module, which axios uses, is unable...

  9. How can I add raw data body to an axios request? - Stack Overflow

    Jul 19, 2018 · I am trying to communicate with an API from my React application using Axios. I managed to get the GET request working, but now I need a POST one. I need the body to be raw text, as I will …

  10. javascript - HTTP Stream using Axios (Node JS) - Stack Overflow

    Mar 19, 2022 · I'm trying to stream price data via HTTP and I use axios to make normal REST API requests, but I don't know how to handle 'Transfer Encoding': 'chunked' type of requests. This code …