Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:15
    avindra edited #2410
  • 17:46
    avindra edited #2410
  • 17:41
    avindra synchronize #2410
  • 15:55
    zhaosiyang edited #2412
  • 15:12
    zhaosiyang opened #2412
  • 09:23
    Tovli commented #1548
  • 09:18
    pc-mon edited #2411
  • 09:16
    pc-mon edited #2411
  • 09:11
    pc-mon opened #2411
  • 08:24
    ryouaki commented #2372
  • 08:23
    ryouaki commented #2371
  • 04:53
    sm2017 commented #2398
  • Sep 14 22:27
    avindra edited #2410
  • Sep 14 22:26
    avindra edited #2410
  • Sep 14 22:22
    avindra edited #2410
  • Sep 14 20:46
    avindra synchronize #2410
  • Sep 14 18:30
    avindra commented #2410
  • Sep 14 18:06
    avindra edited #2410
  • Sep 14 18:06
    avindra edited #2410
  • Sep 14 18:05
    avindra edited #2410
Dave Stein
@DaveStein
but it's quite identical to this issue we found: axios/axios#1619
the weirder part for us is that our JS errors log to our server and say it timed out and shows the request ID, but our server log with same request ID shows no problem - that it responded fine
Ankur Oberoi
@aoberoi

I have the same question as @billsaysthis. Specifically, the no_proxy option is important to solve this issue: slackapi/node-slack-sdk#672

Hi, our project uses Axios and we're waiting on a fix that's in 0.19. It's been in beta awhile now so we're wondering, is there an ETA for a GA release?

Can I (or other developers on my team) help in any way to complete the outstanding work on v0.19.0?

cc @mzabriskie @rubennorte (i couldn't find the other org members in gitter)

Farsad Fakhim
@farsadf
Hi there,
A client asked me to add a feature to his website, which runs on Vue stack and they've used Axios for their Network layer.
They've implemented a downloader which supports concurrent downloads based on Axios and Blob.
The requested feature is straight to the point, the downloader must be capable of pausing/resuming downloads.
As far as I've researched It can be implemented, but it requires a bunch of Blob manipulations. So my question is, can anyone suggest me where to start?!
Andrew Kemp
@andrewtkemp1
why the name axios?
roman joseph merck
@r33j_gitlab
From @wiki
Etymology
ἄγω (ágō) +‎ -τιος (-tios), with the verb in the sense "draw down (in the scale)", hence "weigh, import".
Adam Gall
@adamgall
hi all, i'm having an issue when using axios from an NPM library that i'm developing. i have a local API running on localhost:8080, and axios is returning a 404 when attempting to hit any of the routes. i get no logs on my local webserver. when simply changing the baseURL to my deployed API, everything works as expected
any ideas?
Adam Gall
@adamgall
just swapped out axios for the request library, and getting the same stupid results. so this probably isn't a problem with axios
Adam Gall
@adamgall
woof figured it out. my API was running on port 8080, and apparently SOMETHING in this node / npm / mocha test setup was operating on 8080 also???? changed my api port to a different one and all is better now
Augusto Gonzalez
@4uGuSt0o_twitter
Hello Guys.
Do you know how to use form data in React Native with Axios?
From the RN side I got on my request
something like
an object with a key called _parts
and that is
I want to know how can I send form data
Joey Figaro
@joeyfigaro
Hey guys—can anyone shed some light on merging global axios interceptors with clients? I've got a utility for creating new clients that I'm trying to get global interceptors in.
tballantyne
@tballantyne
Hey folks, running into an intermittent issue with Axios.
Occasionally a request will fail with a wall of data -
{"name":"bunyan-log","hostname":"<hostname>","pid":58445,"level":50,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":true,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"_events":{},"_eventsCount":2,"_options":{"maxRedirects":21,"maxBodyLength":10485760,"protocol":"http:","path":"<path>","method":"post","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/0.18.0","Content-Length":637},"hostname":"<host>","port":"7104","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":1,"defaultPort":80,"protocol":"http:","options":{"path":null},"requests":{},"sockets":{<url>:":[{"connecting":false,"_hadError":true,"_handle":null,"_parent":null,"_host":"<domain>","_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":false,"emitClose":false,"autoDestroy":false,"destroyed":true,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{"connect":[null,null,null],"close":[null,null]},"_eventsCount":7,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":true,"decodeStrings":false,"defaultEncoding":"utf8","length":903,"writing":true,"corked":0,"sync":false,"bufferProcessing":false,"writelen":903,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":3,"prefinished":false,"errorEmitted":true,"emitClose":false,"autoDestroy":false,"bufferedRe
<snip>
115,104,97,50,45,103,54,46,99,114,108,48,76,6,3,85,29,32,4,69,48,67,48,55,6,9,96,134,72,1,134,253,108,1,1,48,42,48,40,6,8,43,6,1,5,5,7,2,1,22,28,104,116,116,112,115,58,47,47,119,119,119,46,100,105,103,105,99,101,114,116,46,99,111,109,47,67,80,83,48,8,6,6,103,129,12,1,2,2,48,124,6,8,43,6,1,5,5,7,1,1,4,112,48,110,48,36,6,8,43,6,1,5,5,7,48,1,134,24,104,116,116,112,58,47,47,111,99,115,112,46,100,105,103,105,99,101,114,116,46,99,111,109,48,70,6,8,43,6,1,5,5,7,48,2,134,58,104,116,116,112,58,47,47,99,97,99,101,114,116,115,46,100,105,103,105,99,101,114,116,46,99,111,109,47,68,105,103,105,67,101,114,116,83,72,65,50,83,101,99,117,114,101,83,101,114,118,101,114,67,65,46,99,114,116,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,139,86,85,89,152,137,7,112,131,220,135,168,134,221,53,245,157,88,172,186,56,153,81,238,49,195,149,173,28,234,206,2,251,163,128,10,234,56,219,225,51,216,241,154,91,197,169,248,154,78,52,229,37,246,105,75,64,53,184,243,210,241,172,101,36,207,110,43,86,159,241,179,213,31,27,26,213,227,253,190,115,70,250,239,70,132,128,70,198,73,110,137,212,225,137,162,116,35,250,33,127,251,210,20,184,12,176,214,199,17,197,192,1,187,49,177,98,0,54,38,148,24,240,210,31,108,92,185,251,69,250,90,69,110,85,105,249,9,190,122,66,244,229,11,118,162,190,106,134,79,218,189,188,214,119,151,7,161,177,175,200,167,231,46,40,163,240,204,127,13,116,103,162,192,223,241,96,212,186,33,26,0,34,191,230,99,124,42,227,228,182,60,88,15,149,55,254,140,141,47,249,217,114,237,115,176,255,8,189,251,255,175,185,182,225,76,39,40,184,204,142,21,141,48,51,123,109,241,156,63,129,141,165,63,204,81,3,77,87,224,168,181,22,201,190,4,162,138,38,72,113,210,135,84,25,244,164,2,4,0]}},"list":["internal-raedeviceregistry-prod-internal-1988243725.us-east-1.elb.amazonaws.com:7001::::::::::::::::::"]}}}},"pathname":"/<path>/_search"},"_ended":false,"_ending":true,"_redirectCount":0,"_redirects":"[Circular]","_requestBodyLength":637,"_requestBodyBuffers":"[Circular]","_currentRequest":"[Circular]","_currentUrl":<url>,"msg":"","time":"2019-04-04T20:29:01.186Z","v":0}
This is during a POST which otherwise works ok. Not sure if the server is throttling requests or if something else is the source of the problem. But from the data dump it is in unclear.
Any thoughts?
Alexey Chernov
@AlexeyKot
Hi! I want to set a baseURL, that looks similar to this:
https://backend.site.com/api.php?cmd=
The problem now is that when I set it, every new request puts additional slash symbol, that I want to find out how to ignore
like
https://backend.site.com/api.php?cmd=/showUsers
Alexey Chernov
@AlexeyKot
while correct request should be
https://backend.site.com/api.php?cmd=showUsers
looks like Axios puts this trailing slash automatically following some standard, but I can't change the backend
Yoni Revah
@heyoni
anyone know where set-cookie headers are being stored?
Yoni Revah
@heyoni
maybe i'm doing something wrong but if my app receives the set-cookie header two times with different values, it doesn't replace the old one
Yoni Revah
@heyoni
looks like maybe the objective-c network stack is saving it :O
Acauã Sperl de Faria
@acaua
Hi there. I'm trying to use axios on Express to do a GET on an URL that can return either a JSON or an image.
If it is a JSON, I wan't it parsed to be forward as a JSON response.
If it is an image, I want to pipe it to Express res as an image.
By default, responseType is JSON and it work fine for json response but fails for images.
If I set "responseType: stream", it works for the image but fails for JSON.
Is there a way to set responseType AFTER the request, based on "content-type" on the response header?
Michael Gerstmann
@webdesignberlin

Hi there, is the follow behavior a bug or not intend:

if i create a axios instance with a header like this 
const HTTP = axios.create({
  baseURL: 'test.test',
  headers: {
    'X-Foo': 'value',
  },
});

it is no longer possible to overwrite the header

 HTTP({ url: 'other', baseURL: null, headers: null })

baseUrl and url can be overwritten, headers not. why. respectively how i can?

Yeo
@ae861995

Hi there, need some help.
On first axios post, the response take around 20second (for data)
Before the first post finished, after around 10 second have passed. i make a second axios post, is the second post only suppose to proceed when the first post is finish?

On chrome dev network, when first post is pending, i can see that second post which was suppose to take only 1 second, instead took 1 sec longer than the first axios post to response back.

I am using react to request axios post to aspx. Using jquery.post seem to be able run both asynchronously. I does not seem to be able to use axios.all in my case, is there any way to make axios post asynchronously?

Thanks in advance.

Dj-jom2x
@Dj-jom2x
make sure its async
Yeo
@ae861995
Hi @Dj-jom2x , mind to explain more to me? I think that the request is already made in my apps, as they request showed up in chrome dev network tab.
How to make axios post async?
Yeo
@ae861995
image.png

Screenshot to what i said above.
The red mark request is all the same request that request a small data by user click.

Then another component in my React request a bigger chunk of data (Submit and wait for return ) which need sometime for process. Which is mark in blue.

The blue request make all the red request wait for him to finish, did i do something wrong?

Al Knows
@al_knows_twitter
Hi, is it possible to send a SEARCH request with axios? ExpressJS supports this verb but i didn't see it the axios docs.
Yeo
@ae861995
Reply to question above, i found the issue is coming from Aspx webform only process one request at a time if they are coming from same session, leaving it here in case someone else have same problem
http://hogaf.github.io/archive/2014/11/13/why-asp.net-requests-are-processed-sequentially
Jonathan Stevens
@jphilipstevens
Hello,
Is there any traction of getting PR 2207 done? 0.19.0 has a broken change.
Konstantin Bläsi
@konstantinblaesi
something else?
Jonathan Stevens
@jphilipstevens
@al_knows_twitter I would add a issue on the GH if you do not see it. The Typedefs do not show SEARCH: https://github.com/axios/axios/blob/master/index.d.ts#L24
Ghost
@ghost~5b50e037d73408ce4fa1903b
hey all - I have an interceptor for axios to catch expired API tokens for specific cases and return the original error response for all other cases.
The issue is that when it returns the errors for all other cases, it does not return the full error (which includes config, response, etc.), but a simplified version that has basic info (message, error name, etc.).
Any idea what I am doing wrong in my interceptor that is preventing it from returning the full error response?
my code: https://gist.github.com/cryocaustik/49c9e39bee2a16b3fa69e78716ae5105
Alex Skobelev
@cryocaustik
accidentally duplicated my account; the above post was me
lRoberth
@lRoberth

can anyone give me a hand?, i'm trying to post with axios, but nothing happens, here is my code
https://i.imgur.com/nWVAmi7.png
this is where i call the function
https://i.imgur.com/BwSCKRh.png

i'm in node.js

this is the console output
https://i.imgur.com/F6cLcqW.png

Watermelon Puppet
@xiGUAwanOU

Hello there, recently I have updated to v0.19.0, but found that the relative query path behaviour is not the same as it was in v0.18.1.

I'm working in a Vue.js project, and using the default TypeScript setup provided by vue-cli.

In Jest, I've set up the testURL as 'http://localhost/test/', and in the test, I'm trying to query with axios.get('api/healthcheck') for example. The log shows that I'm querying the path http://localhostapi/healthcheck, instead of http://localhost/test/api/healthcheck. However 0.18.1 has the expected behaviour.

I've checked the Jest version I'm using, they are the same, there is no changes at Jest side.

Can anyone confirm this behaviour change? Or did I do something wrong?
Jonathan Stevens
@jphilipstevens
Hello, I am a recently added maintainer for Axios. I am looking at the list of PRs to understand priority. So far I see that there was a regression that was fixed in #2207 Are there any other PR's that need immediate attention?