Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Now Viewing: Always get "socket hang up" error when i make request

Keep it civil, do not flame or bait other users. If you notice anything illegal or inappropriate being discussed, contact an administrator or moderator.

SThorn Group: Member - Total Posts: 1
Always get "socket hang up" error when i make request
Posted on: 11/06/18 11:39AM
When I'm making HEAD request to get size of the photo I always get "socket hang up" error.
Using axios, request (NodeJs)
But It works when I use proxy.

Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1148:19)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at TLSSocket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)

When I'm making requst with curl from same machine it's OK

curl -Is
HTTP/1.1 200 OK
Date: Tue, 06 Nov 2018 17:17:11 GMT
Content-Type: image/jpeg
Content-Length: 118262
Connection: keep-alive

API works well.

lozertuser Group: Administrator - Total Posts: 1604
Posted on: 11/06/18 01:37PM
You are using the latest version of NodeJS? The second link is using http, not https also, so that's not an apples to apples comparison.

add_replyAdd Reply