Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is wrong with redirects #412

Closed
kof opened this issue Jul 7, 2014 · 7 comments
Closed

Something is wrong with redirects #412

kof opened this issue Jul 7, 2014 · 7 comments
Labels

Comments

@kof
Copy link
Contributor

kof commented Jul 7, 2014

I have got this url: http://goldhaber.org/?feed=rss2&cat=23
It responds with 310 and new location header. Superagent sends something on 2. try that causes the server to redirect it to a different url again and again util we reach the limit.

Browser follows it with no issues.

@kof
Copy link
Contributor Author

kof commented Jul 10, 2014

Yet another example: http://s228.photobucket.com/albums/ee39/BillyG1591/?action=view&current=untitled.jpg

superagent max redirects 5 +0ms
superagent GET http://s228.photobucket.com/albums/ee39/BillyG1591/?action=view&current=untitled.jpg +9ms
superagent GET http://s228.photobucket.com/albums/ee39/BillyG1591/?action=view&current=untitled.jpg -> 301 +382ms
superagent redirect http://s228.photobucket.com/albums/ee39/BillyG1591/?action=view&current=untitled.jpg -> http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html +1ms
superagent clear timeout GET http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html +0ms
superagent set accept-encoding "gzip, deflate" +1ms
superagent set user-agent "node-superagent/0.18.1" +2ms
superagent GET http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html +0ms
superagent GET http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html -> 404 +1s
superagent end GET http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html +84ms
superagent clear timeout GET http://s228.photobucket.com/user/BillyG1591/media/untitled.jpg.html +1ms

however browser resolves it correctly, accessing the redirected url directly with superagent works as expected too

Can somebody look at it whats going on under the hood?

@kof
Copy link
Contributor Author

kof commented Jul 10, 2014

@gjohnson ?

@kof
Copy link
Contributor Author

kof commented Jul 11, 2014

@Naman34 wdyt?

@gjohnson
Copy link
Contributor

This happens in node?

@kof
Copy link
Contributor Author

kof commented Jul 11, 2014

yes sure, also probably good to mention node -v v0.11.13

@gjohnson gjohnson added the Bug label Jul 11, 2014
@nmn
Copy link
Contributor

nmn commented Jul 17, 2014

If this only happens in Node, there might be a bug in the underlying node implementation. I'll try to test it soon.

@defunctzombie
Copy link
Contributor

Closing due to age. If a simple example is provided I can run to reproduce, happy to take a closer look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants