Skip to content Skip to sidebar Skip to footer
Showing posts with the label Axios

Can't Call .then When Mocking Axios Call Inside Componentdidmount

I'm trying to unit test componentDidMount while mocking an Axios call. // src/App.tsx import a… Read more Can't Call .then When Mocking Axios Call Inside Componentdidmount

Accessing Response Header Via Axios

I'm using Axios to make a secure POST call to an API. This returns an URL within the response h… Read more Accessing Response Header Via Axios

Vue: How To Set Data From Within An "inner" Function?

I'm using Vue and Axios to display a progress bar. uploadProgress is a data key in my Vue insta… Read more Vue: How To Set Data From Within An "inner" Function?

Post Request Not Recognizing Headers

I am trying to make a POST request to an AWS Lambda Python Script I have set up. I have already he… Read more Post Request Not Recognizing Headers

Capsuled Data Sharing With Vuex, Axios & Several Component Instances

I have a component QuestionContainer.vue with several questions (input forms). Every user given ans… Read more Capsuled Data Sharing With Vuex, Axios & Several Component Instances

Axios Post Form With Reactjs

So I have this post method with Axios and if I submit this, it said Uncaught (in promise) Error: … Read more Axios Post Form With Reactjs

Axios Formdata() Getting Empty Object

Browser-side code let data = new FormData(); data.append('file', file); data.append('u… Read more Axios Formdata() Getting Empty Object

How To Use Axios With A Proxy Server To Make An Https Call?

It's basically the same question here. I'm using a browser. The following code is compiled … Read more How To Use Axios With A Proxy Server To Make An Https Call?

Cant Cancel Axios Post Request Via Canceltoken

This code cancel GET requests but cant abort POST calls. If i send GET requests first and i dont ca… Read more Cant Cancel Axios Post Request Via Canceltoken

Unable To Perform .map Whithin Function

Background I'm building a React-Redux application which, amongst other things, has to handle so… Read more Unable To Perform .map Whithin Function

How To Limit Axios From Making More Than 2 Requests To The Same Resource At The Same Time

This is how I am making the request using an axios instance. I need to know how many requests are m… Read more How To Limit Axios From Making More Than 2 Requests To The Same Resource At The Same Time

Actions Must Be Plain Objects In React/redux?

the problem I'm running into is Actions must be plain objects when passing data through my acti… Read more Actions Must Be Plain Objects In React/redux?

How To Await A Json Return Value (the Return Takes At Least 30 Seconds) Before Logging It? Javascript/react/express

This is a follow up to these threads: How to set state of a react component with a specific item fr… Read more How To Await A Json Return Value (the Return Takes At Least 30 Seconds) Before Logging It? Javascript/react/express

How To Solve 'access-control-allow-origin' Error When Trying To Access Api From Localhost

I've seen a lot of topics on this error, but I'm very new to js and apis, so I couldn't… Read more How To Solve 'access-control-allow-origin' Error When Trying To Access Api From Localhost

Axios Get From Local Php Just Returns Code Instead Of Executing

The API I am trying to access has disabled CORS so I need to request on the server side. Utilizing … Read more Axios Get From Local Php Just Returns Code Instead Of Executing

React And Axios Fires Twice (once Undefined, Once Successfully)

Following the React AJAX example i have created a JSX file which purpose is to fetch and render a m… Read more React And Axios Fires Twice (once Undefined, Once Successfully)

How Do I Wrap Axios.get Multiple Response Results Into One Array?

Hi I am trying to combine the results of my axios get request into one array. I am grabbing data fr… Read more How Do I Wrap Axios.get Multiple Response Results Into One Array?

Axios Prints Value On Console But Returns Undefined

I have quite an issue for some time and is getting on my nerves and it doesn't make sense. I ha… Read more Axios Prints Value On Console But Returns Undefined

Updating Data In Firebase Using React And Axios

I'm trying to update some data in a firebase database. However i am unable to get the updateAPI… Read more Updating Data In Firebase Using React And Axios

How To Use Axios With A Proxy Server To Make An Https Call?

It's basically the same question here. I'm using a browser. The following code is compiled … Read more How To Use Axios With A Proxy Server To Make An Https Call?