Category "axios"

Axios Uncaught TypeError: Cannot read property 'map' of undefined

I'm trying to display data from my API in a React App with Axios. I've created a simple method that connects to the REST API. import axios from 'axios'; cons

Suggestions for rate limiting using Axios

I'm using react with axios for accessing api from cryptocompare. Api has limit of 15 call per second. Now after 15 api call I'm getting error of "Rate limit e

Python: FastAPI error 422 with post request

I'm building a simple API to test a database. When I use get request everything works fine, but if I change to post I get "unprocessable entity" error: Here is

React state not updating after a post request?

I'm trying to send a post request to my backend with axios, and my backend gets the values with no problem, but I want to set a state of (sent) to true when the

Laravel and Passport getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token'

I've seen many posts about this error, but none of the solutions are working for me. I'm running Laravel with Passport which is working fine on my development s

Using React-Hook Form, How do I post data to my MongoDB in React Native

I am facing an issue where Im trying to post data to my mongoDB from the frontend using React Hooks on React Native. The problem is that Im struggling to get th

Cancelling Axios request in React when using React Router Switch

I'm a newbie building an App that utilizes React Router to switch between 3 different components that each utilize Axios to fetch data from an API. I am trying

Vue.js: Getting data from the api and passing it to a child component (simple example)

I want to make an ajax request using axios package on the parent component and pass the returned array to a child component so that it can iterate the array an

How to implement asynchronous middleware in Nuxt.js

I have a Nuxt middleware file that fetches the session from an external api. This session is used to set things such as locale, so it's important that it is fet

React Native Axios get response Skipped and Status Code 0

I got a problem with my react native app. while accessing API, I get a response Skipped and status code 0. it's shown by using reactotron to log the api respons

React Native + Expo + Axios file upload not working because axios is not sending the form data to the server

I am trying to upload an image with react native front end and axios to my back end. This is how pic the image const pickImage = async () => { let result

Testing axios.create() instance with jest

I tried many solution from this task. I want testing axios instance api call without any libralies (jest-axios-mock, moaxios, msw, etc). I hope it's possible, b

Using axios.post, response.data return html instead of data [Nodejs, React]

What I want is, when I click SUBMIT button, it should post some data using axios.post const sb = async () => { axios.post('/tagSearch',{ qual: qual

Nest.js axios HttpModule freezes app initialization

I have a module that goes like this: import { Module } from '@nestjs/common' import { OtpService } from '@modules/auth/otp/otp.service' import { OtpResolver } f

How to base64 encode inputs in React?

I am trying to post two inputs with axios and I want to base64 encode them before I send them.

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