axios Questions
7
Solved
I'm using axios in my app. When I make a post request for the very first time after opening the app, it is failing with the following error. From second time onwards, it works without any issue.
Ne...
Applewhite asked 13/1, 2021 at 7:59
3
I have a problem connecting to the api by axios Error: Request failed with status code 400
Can someone help me please?
My services/api.js: `
const axios = require("axios");
const api = axios.cr...
3
I am gettting an api response using axios.
I am sending the api response sorted w.r.t name http://localhost:8000/api/ingredients/ordering=name
The actual object sent is as below from my server.
...
Pagurian asked 9/12, 2017 at 10:3
2
Solved
So I am a creating an axios instance that connects to some API like this:
const instance = axios.create(...)
I want to know is there a limit to how many concurrent/parallel requests axios would be ...
Resoluble asked 28/12, 2020 at 23:6
3
I'm currently working in laravel and react js. I've made API end points in laravel for login registration with laravel passport. Now, I've made following route to get user details when api_token is...
8
Solved
I am trying to send an axios request to the backend, but it ends up having an empty body, and i do not understand why it does that.
This is the code for the request:
axios.post('/register', {emai...
6
Solved
I tried to deploy my express server on vercel to solve cors problem on my front code.
The problem is 404 error pops up when I enter the deployed page:
but it goes well when I try on localhost.
// ...
Volution asked 11/6, 2022 at 13:28
3
Solved
I got the following code :
loggedInAxios.interceptors.request.use(
async (config) => {
if (isTokenExpired('access_token')) {
const response = await getRefreshToken();
await refreshAccessToke...
Eccrine asked 23/11, 2021 at 17:24
4
I would like to stop the infinite loop that I am getting with my axios interceptors.
When the user logs in, tokens are set in the local storage.
To test if token are being handled well, I change th...
Wenonawenonah asked 10/10, 2023 at 8:40
4
I have built an axios private instance with interceptors to manage auth request.
The system has a custom axios instance:
const BASE_URL = 'http://localhost:8000';
export const axiosPrivate = axios....
6
I am using axios PATCH method in ReactJS to update the record but its getting failed with following error
Failed to load http://192.168.99.100:8080/adslots/883: Method PATCH is not allowed by Ac...
Iene asked 26/5, 2018 at 8:50
5
Solved
I am using React Query to fetch data from an API in a React app. I want to implement debounce for better performance, but I'm having trouble getting it to work with useQuery. When I try to wrap my ...
Snowinsummer asked 17/4, 2023 at 0:35
10
Solved
I have an ASP.NET Core Web API and a separate React app. The Web API uses Windows Authentication. When deployed to the server, I don't have any issues, but when I try to run the app locally, I get ...
Bewitch asked 15/9, 2021 at 16:59
1
Hi I'm currently working with react native on Android with Expo. I am trying to send requests to my server which has a valid ssl certificate, but for some reason axios takes it as invalid, so axios...
Nocuous asked 17/1, 2020 at 7:14
3
Solved
I'm little bit confused that how to upload progress event with axios. Actually I am storing huge number files into aws s3. For that, how to get uploaded progress? I need this function onUploadProgr...
Franklyn asked 11/12, 2016 at 15:52
3
Solved
This error has suddenly started occurring on all my servers, and despite trying everything suggested here, I haven't been able to resolve it.
The issue persists regardless of the URL I attempt to a...
Stegman asked 18/4 at 11:36
19
Solved
I am making a POST request to server to upload an image and sending formdata using axios in react-native. i am getting "Network Error". i also try fetch but nothing work.using react native image pi...
Councilman asked 12/4, 2020 at 17:35
2
I'm getting this error when trying to do a POST request using axios:
Error: Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream at createError
Here's my request:
as...
Humpy asked 28/6, 2019 at 8:44
5
Solved
so i want to upload
object as data
and file as Note
to api using axios
uploadToServer= () => {
const file =this.state.photo
let data2 ={sale_id:1,
note_type_id:4,
description...
Subcartilaginous asked 21/5, 2019 at 9:30
4
This seems like a simple Nuxt question, but I just can't figure it out.
When running "NPM run dev" I want to set the Axios baseURL to "localhost/api" and when running from the dist folder after "N...
1
I'm trying to port over my CRA app to NextJs , but there is ONE thing that is stopping me:
I would have to append auth token header to EVERY single one of my hundreds of API calls.
My auth flow is ...
Jamima asked 31/10, 2022 at 1:54
4
Solved
I'm using Laravel sanctum (former Airlock) and have a question about it. I read in the docs:
To authenticate your SPA, your SPA's login page should first make a
request to the /sanctum/csrf-coo...
Balkh asked 21/3, 2020 at 11:26
1
Solved
Problem Background
We have a react-based (version 16.14.0) PWA that is hosted on Microsoft Azure app service plans (premium tier).
We've recently seen an increase in a sporadic issue where we are s...
Urn asked 5/6 at 10:12
5
Solved
I'm new with React Query, and I have a question, I've being looking on the documentation but I can't find how should I access the data that is already fetched with useQuery() from another component...
Cabaret asked 11/7, 2021 at 12:49
17
I am creating a react-native app and one of the components I have created contains a property which is populated through data coming from an http request.
Right now I am hosting the server from m...
Perez asked 21/11, 2017 at 16:17
1 Next >
© 2022 - 2024 — McMap. All rights reserved.