Top "Axios" questions

Axios is a Promise-based HTTP client for JavaScript which can be used in your front-end application and in your Node.

How to set state of response from axios in react

How do I set the state of a get response in axios? axios.get(response){ this.setState({events: response.data}) }

javascript reactjs axios
How to configure axios to use SSL certificate?

I'm trying to make a request with axios to an api endpoint and I'm getting the following error: Error: unable …

node.js ssl ssl-certificate axios
Axios catch error Request failed with status code 404

I'm testing a login component that uses Axios. I tried mocking Axios with axios-mock-adapter, but when I run the tests, …

unit-testing vue.js jestjs axios axios-mock-adapter
How can you use axios interceptors?

I have seen axios documentation, but all it says is // Add a request interceptor axios.interceptors.request.use(function (config) { // …

javascript axios
How to return values from async functions using async-await from function?

How can I return the value from an async function? I tried to like this const axios = require('axios'); async …

javascript node.js asynchronous async-await axios
How to handle 401 (Authentication Error) in axios and react?

I have one file request.js which contains wrapper for axios ajax request. I am calling request function from multiple …

javascript reactjs token axios http-status-code-401
How to catch and handle error response 422 with Redux/Axios?

I have an action making a POST request to the server in order to update a user's password, but I'm …

javascript reactjs redux axios
Force download GET request using axios

I'm using vuejs 2 + axios. I need to send a get request, pass some params to server, and get a PDF …

javascript vue.js vuejs2 axios
Vue Axios CORS policy: No 'Access-Control-Allow-Origin'

I build an app use vue and codeigniter, but I have a problem when I try to get api, I …

json vue.js axios
Vue JS returns [__ob__: Observer] data instead of my array of objects

I've created a page where I want to get all my data from the database with an API call, but …

javascript arrays laravel vue.js axios