Open Borewit opened 6 years ago
Interesting. Have you tried with other servers?
Good point, I did some more testing. Using the same sample, and installed Node v11 on my Windows machine (other results executed on Travis-CI):
Server | Node v8.12.0 | Node v11.0.0 | Note |
---|---|---|---|
https://tunalib.s3.eu-central-1.amazonaws.com/plan.m4a | ✔️ | :x: | Original location |
https://dl.dropboxusercontent.com/... | ✔️ | :x: | Public dropbox share |
http://diskatation/... | ✔️ | :x: | HTTP, intranet, Apache server |
If I replace the sample with a 0 byte file on the local Apache it does no longer get stuck.
I have experienced some similar issues, although not with needle but x-ray, which uses superagent internally. Some connections got stuck for around 5 minutes, but I was using a socks5 proxy. I'm using Windows too, but i suspect that it might not be an issue on linux.
I have simple unit test fetching a file using HTTPS which runs fine on
but it fails on:
It is not specific to needle, I tried the following solutions and they all give the same result:
Reproduction of issue (written as a Mocha unit test) with Needle:
My current http test
Related issue on my end: https://github.com/Borewit/music-metadata/issues/160
Do you have any idea what the cause of the issue is?