Closed julianlam closed 8 months ago
@xiaoyang678 @julianlam Feel free to submit a PR to address this issue :)
@xiaoyang678 @julianlam Feel free to submit a PR to address this issue :)
i think v3.2.0 is fixed this issue, https://github.com/tomas/needle/issues/413 , please close.
Hi there,
If a URL is passed in that sends back a redirect to an url that sends back a redirect, repeat ad nauseam... needle doesn't throw an error anymore, at least on Node v16.14.0
The affected URL is
http://www.sri-lanka-live.de/Fauna_Flora/Schmetterlinge_1/Falter_2_4.jpg
, which is a misconfigured web server that endlessly redirects requests by prependingindex.php/
to the path. Warning: This is not my web server, nor do I have control over it – you can likely reproduce this by misconfiguring a proxy server to redirect something from http to https and back again.Anyhow, on Node 14, it throws (or triggers) this error:
Now it hangs forever.
I have some sample code that seems to trigger this behaviour:
It seems
follow_max
is adhered to, but instead of throwing the aforementioned error, nothing happens at all.