Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:56
    rdmadeira commented #4490
  • Aug 12 08:00
    realityfilter commented #4901
  • Aug 12 07:51
    realityfilter commented #4901
  • Aug 12 04:19
    shaoxp commented #3457
  • Aug 12 04:18
    shaoxp commented #3457
  • Aug 12 01:55
    WillianAgostini commented #4901
  • Aug 11 20:04
    tregonzalesCar commented #3473
  • Aug 11 15:45
    NotiGate commented #4840
  • Aug 11 15:45
    NotiGate commented #4840
  • Aug 11 15:43
    NotiGate commented #4840
  • Aug 11 15:43
    NotiGate commented #4840
  • Aug 11 15:42
    NotiGate commented #4840
  • Aug 11 15:03
    saqi3492 commented #3323
  • Aug 11 14:00
    mleister97 commented #4716
  • Aug 11 12:55
    saqi3492 commented #3323
  • Aug 11 10:48
    realityfilter commented #4901
  • Aug 11 09:53
    Nevon commented #4531
  • Aug 11 09:47
    ghost91- opened #4911
  • Aug 11 09:38
    shaoxp commented #3457
  • Aug 11 09:35
    ghost91- commented #4184
CodeZealot
@CodeZealot1024
1
1
1
1
11
1
1
1
1
1
1
1
1
1
1
1
1
1
JunkMeal
@JunkMeal

Hello i need help with the Axios browser version.

I am requesting an url that redirects but i dont wanna follow it i just want the url that it wants to redirect

        const response = await axios.get(url, {
            maxRedirects: 0,
            validateStatus: function (status) {
                return true;
            },
        })
i have this code but it still redirects
jjfwas123
@jjfwas123
maxRedirects只能在node中生效,浏览器是无法控制重定向的
@JunkMeal
JunkMeal
@JunkMeal
So is there any way to request an url and stop the redirect and just look at the location header?
jjfwas123
@jjfwas123
没有办法,这个是后端控制的
Miika
@mkoske
Hello, I created this issue: axios/axios#4104
But it was closed by bot. Why?
Miika
@mkoske
Seems I found why and fixed it. Could someone reopen it?
Arkadiy Andriyenko
@aandriyenko-lohika

Hi Friends,
Does Axios support keepalive functionality same as the native fetch()?

keepalive
The keepalive option can be used to allow the request to outlive the page. Fetch with the keepalive flag is a replacement for the Navigator.sendBeacon() API.
https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters

nbressler
@nbressler
Hey, all! Have a list of "axios.get()" responses and I'm trying to use "axios.all" against them. Every time I try I get a status 500. If I do them individually they work perfect. Any advice?
I must not be waiting for the promises to resolve
nbressler
@nbressler
This is the error message I get every time: "Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded."
nbressler
@nbressler
Huh, I figured it out. Maybe it was rate limiting? If I put a sleep function and wait 200 milliseconds it works perfect
RedBeeツ
@bilal-08
ummm i want to make a post request with axios.post and post a image, how do i achieve it? im using imgbb.com's api
lzq15116
@lzq15116
滴滴滴滴滴滴滴
hello world
hello verybody
likeberty
@likeberty

I've found that Axios randomly send duplicate POST request to API, which cause the duplicate data in the system.

At first I thought that the user click the button several times, but today I saw that user just click the button only one time and the requests were sent 4 times. After that user try to clich that same button again, this time the request is sent one time correctly.

This is from our UAT system today, but we've found similar issues on production for 3-4 months and it just happen randomly.. Is there any solution for this issue?

Santosh Kumar
@sleepingsaint
I am trying to use axios with react app. I trying to create a axios instance with auth header after user logs. But on axios.create() function is returning a wrap function instead of axios instance. Any help would be appreciated. Thanks in advance :)
Dhanesh
@dhaneshsaini
I want to create an Instagram downloader using react and I'm using npm instagram-url-direct. this is working perfectly but react its throw error, please help
createError.js:16 Uncaught (in promise) Error: Network Error at createError (createError.js:16:1) at XMLHttpRequest.handleError (xhr.js:99:1)
Aram Bayadyan
@aramix
Hi,
Anyone else here experiencing timeout errors with v0.25.0?
Neetesh Pratap Singh
@neeteshp

I'm using Axios request for 2 API's. For one of the API, I'm using below code to set certificates globally -

https.globalAgent.options.ca = [
fs.readFileSync('certs/1.pem'),
fs.readFileSync('certs/2.pem'),
fs.readFileSync('certs/3.pem')
];

When I tried, Axios request for 1st API worked.

But second request, which is a Service Now request, throws error - Error: unable to get local issuer certificate

I tried configuring certificate specifically for the request, but first request itself is throwing same error.

async function getAuthToken() {
return await axios.post('Some URL' + "/authentication/connect/api1",
'grant_type=password&username=' +appID+ '&password=' + 'appPwd',
{
httpsAgent: new https.Agent({
options: {
ca: [
fs.readFileSync('certs/1.pem'),
fs.readFileSync('certs/2.pem'),
fs.readFileSync('certs/3.pem')
],
rejectUnauthorized: false
}
}),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic d3MudXNlcjo='
}
})
}

How to call second API without any errors ?

Shrinivas A
@ambatshri
im working on RN App for Tablets and using axios to make API Calls, the problem im facing is with issue related to self signed certificates
is there any way to disable the ssl checks
Jae Lee
@jaequery
i need to make 100's of POST requests per second, what is the best way to setup Axios to do so without crashing the system? keepAlive: true?
Diego Galeano
@diegood
image.png
Hello, I am using version 0.27.2 of axios, when the call returns a 401 axios always returns 0 in "error.response.status" "ERR_NETWORK"
image.png
Mr. Dong
@javencpdd
hello
这个群有人讨论吗