Category "axios"

How to export Axios.create in Typescript

I have this working: export default axios.create({ baseURL: 'sample', headers: { 'Content-Type': 'application/json', }, transformRequest: [ (dat

Accessing Set-Cookie value from response.headers in axios

I am using VueJS and Axios to send a request like this: axiosAPI.get('/login/flows', {params: {id: 'string'}}) .then(res => { co

403 when upload file to S3 bucket using axios

I'm using axios to upload an audio file to AWS s3 bucket. The workflow is: React => AWS API Gateway => Lambda. Here is the backend Lambda code where gener

response detail error:2,errMsg:post method api body check failed! Agora REST API

const Authorization = `Basic ${Buffer.from(`${config.CUSTOMERID}:${config.CUSTOMER_SECRET}`).toString("base64")}`; const acquire = await axios.post(`https://api

Axios POST request fails with error status code 500: Internal Server error

I'm trying to send a POST request locally with a username and password in the body through Axios. I'm deploying a Flask app on http://127.0.0.1:5000/login, wh

failed to load response data request content was evicted from inspector cache

i am trying to get file from server that has size of(15mb) through Axios Request. showing status "200", but not sending file previewData(base64) and showing thi

Axios: how to cancel request inside request interceptor properly?

I want to cancel the request if there's no token so I do like this: instance.interceptors.request.use(config => { if (!getToken()) { console.log("inte

Web Scrape pagination in a single URL (cheerio and axios)

newbie here. I was on web scraping project. And I wanted some guide on web scraping pagination technique. I'm scraping this site https://www.imoney.my/unit-trus

React native with Asp.net Core photo upload

I want to upload photos with React Native. My API attempt from Postman resulted in a positive. But React Native didn't make it. React Native function upload

React native with Asp.net Core photo upload

I want to upload photos with React Native. My API attempt from Postman resulted in a positive. But React Native didn't make it. React Native function upload

Dialogflow using external API with Axios

To study, I'm trying to make a bot that, in response to a request, will send an image. Used waifu pics api (https://waifu.pics/docs) just pictures. It sends the

vuejs 401 unauthorized with axios from django backend with token

im trying to fetch data from django rest backend with axios in vuejs frontend but each time i get this error. the tokens match but it is still not authorizing.

TypeError: (0 , _axios.default) is not a function when use jest.mock('axios') inside a *.test.js file

I try to mock axios module inside my test file like this // mycomponent.test.js import axios from 'axios'; jest.mock('axios', () => ({ get: jest.fn(() =&

TypeError: (0 , _axios.default) is not a function when use jest.mock('axios') inside a *.test.js file

I try to mock axios module inside my test file like this // mycomponent.test.js import axios from 'axios'; jest.mock('axios', () => ({ get: jest.fn(() =&

how to perform operations with json string from axios?

Background I am passing variable from my frontend HTML file using axios var idToken1 = result.getIdToken(); axios({ method: 'post', url

Axios get request not performing correctly after useEffect cleanup

I am writing an axios get call useEffect that is called whenever a user selects an option from a dropdown menu. It works on getting info on the first time I sel

React native network error (CORS) when using Chrome developer tools but working with react-native-debugger

All requests seem to work when using react native debugger but when attempting to use chrome debugger at http://localhost:8081/debugger-ui/ I get: Access to XML

URLSearchParams with axios instance in react-native

I was attempting to send payload, and URLSearchParams through an API URL from my react-native application. I initialized an axios instance as, import { BASE_URL

upload image from react native app to symfony backend via axios

I want to upload an image from react native app to backend in symfony via axios. here is the code of the front end : const [pickedImage, setPickedImage] = u

Nodejs - Axios - Timeouts lead to memory leak

I'm running an app which basically: Receives a request through Express.js Send multiples requests to various endpoints Once those endpoints responses, we comput