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

Axios Api Request In Nextjs Returning Cannot Read Property Of 'map' Of Undefined

Okay so I'm trying to return data from this API endpoint https://fortnite-api.com/v2/cosmetics/… Read more Axios Api Request In Nextjs Returning Cannot Read Property Of 'map' Of Undefined

Axios Post Returns "network Error" Even If Status Is 200 And There's A Response

I'm using Vue JS 2.5 with Axios: 'vue': '^2.5.17', 'vue-axios': '^… Read more Axios Post Returns "network Error" Even If Status Is 200 And There's A Response

Getting Undefined When I Return Some Response From Mocked Axios Call Using Jest

I'm trying to mock axios call and verify the response, but when I log the response from mocked … Read more Getting Undefined When I Return Some Response From Mocked Axios Call Using Jest

React-redux - Passing Down Props Before Async Data Arrives

I receive the 'Uncaught TypeError: Cannot read property 'data' of null' error in th… Read more React-redux - Passing Down Props Before Async Data Arrives

React/redux: Not Saving In State As Intended

I am building a review app. I am using json-server to do post request. My database looks like this … Read more React/redux: Not Saving In State As Intended

Waiting For All Promises Called In A Loop To Finish

I'm using the axios promise library, but my question applies more generally I think. Right now… Read more Waiting For All Promises Called In A Loop To Finish

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

React: Use Axios To Post State To Mongodb

I am trying to post the states as data to MongoDB through Express and Node with Axios. class App e… Read more React: Use Axios To Post State To Mongodb

Res.download() Working With Html Form Submit But Not An Axios Post Call

I am writing a small app that submits information from a React app to an Express server's '… Read more Res.download() Working With Html Form Submit But Not An Axios Post Call

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.get() Reactjs

I'm making simple To-Do App in ReactJS.For now I'm adding Routes I managed to implement .po… Read more Axios.get() Reactjs

Convert Blob Url To File Object With Axios

I have an image cropper that creates a blob file for each crop. When the user finished cropping he … Read more Convert Blob Url To File Object With Axios

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

Get Closest Parent Element By Class Name In React

Using React, how do I refer to parent element's closest element with certain classname? Code be… Read more Get Closest Parent Element By Class Name In React

Axios Transformrequest - How To Alter Json Payload

I am using axios in my Express API and I want to transform the payload before sending it off to ano… Read more Axios Transformrequest - How To Alter Json Payload

Vue Composition Api Use Vueaxios?

I am in main.js importing vue-axios main.js import { createApp } from 'vue'; import axios f… Read more Vue Composition Api Use Vueaxios?

How To Set Mime Type For Post - Multipart/form-data In Axios?

I need to send POST request with MIME - multipart/form-data This is my default configuration for PO… Read more How To Set Mime Type For Post - Multipart/form-data In Axios?

How To Make A Second Api Call Based On The First Response?

I need to call 2 APIs for displaying data on my component but the second api needs headers from the… Read more How To Make A Second Api Call Based On The First Response?

Jsonstub Response Not Showing

axios.get('http://jsonstub.com', { headers: { 'Content-Type': 'applicatio… Read more Jsonstub Response Not Showing

How To Format And Display Json Data Using Array.map In Reactjs?

I am trying to display data which is stored as userList state variable. I am trying to map each obj… Read more How To Format And Display Json Data Using Array.map In Reactjs?