deno: Fetch returns: Error trying to connect: Connection reset by peer (os error 54)
let a = await fetch('https://pictures.vwe.nl'); console.log(a)
Returns “Error trying to connect: Connection reset by peer (os error 54)”
deno --version
- deno 1.0.5
- v8 8.4.300
- typescript 3.9.2
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 3
- Comments: 20 (6 by maintainers)
I am getting this in an import statement:
@iuioiua I’ve tried with Deno.HttpClient, but it has the same problem. There is nothing wrong with the certificate of the remote, it seems to be a TLS issue that Deno struggles with.
It is just a single line of fetch:
With that line, I immediately get the
os error 54exception as reported by the other commenters on this issue. Since I have no “custom certificate”, Deno.httpClient did not make any change here.Unfortunately I can’t share the remote URL here, but if you are on Discord or somewhere I’d be glad to send you the full fetch line so you can test it on your side.
The issue is still unsolved in:
deno 1.37.2 (release, aarch64-apple-darwin) v8 11.8.172.13 typescript 5.2.2
Most external https URLs I try to fetch result in the following error:
Curl says:
Almost always I try to start a project with Deno I end up with this, for the past two years, making it impossible to use Deno or Deno Deploy.
The same fetch works in Node, Bun, and literally every other runtime/language I tried.
Hi
I had a long running (ie several hours) simple Deno program that just loops a
fetchrequest every few minutes to look for any new articles at Hacker News. This ran for several hours with out issue, and then stopped with the error below.Not sure if it is relevant or related to the similar errors being reported on this issues - so just in case it is of help.
Simon
Extract of some of the code that cased the above error:
Deno Version:
OS: Apple macOS ‘Big Sur’ version 11.5.2
Yes thats correct i would like to do a.statuscode to know the http status code of the request.