You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some issues with redirects with axios that I'm now pretty sure are due to something in follow-redirects. Axios is currently using 0.0.7, but I upgraded my local copy to use 0.2.0 and still seeing the issue. This does not occur with node 5.12.0, but it does happen with node 6.3.1.
The crux of it seems to be that I'm hitting an endpoint in my node app that is responding with a 301, but then I get a 401 from the resulting Location.
I set DEBUG=follow-redirects but did not get any more useful info. I then added this line:
debug('making request with',options);
right here to log every outgoing request, and then I get the following output:
Note that the first request has the correct auth field, but the subsequent request has auth: null. Is this a node 6 breaking change? A bug in follow-redirects? It looks like this change could be related, but as per the logs above, the host is not changing.
The text was updated successfully, but these errors were encountered:
I had some issues with redirects with axios that I'm now pretty sure are due to something in
follow-redirects
. Axios is currently using 0.0.7, but I upgraded my local copy to use 0.2.0 and still seeing the issue. This does not occur with node 5.12.0, but it does happen with node 6.3.1.The crux of it seems to be that I'm hitting an endpoint in my node app that is responding with a 301, but then I get a 401 from the resulting Location.
I set
DEBUG=follow-redirects
but did not get any more useful info. I then added this line:right here to log every outgoing request, and then I get the following output:
Note that the first request has the correct
auth
field, but the subsequent request hasauth: null
. Is this a node 6 breaking change? A bug infollow-redirects
? It looks like this change could be related, but as per the logs above, the host is not changing.The text was updated successfully, but these errors were encountered: