Notice: My personal stance on AI generated artwork. Retweet and share if you agree. Let us discuss, and not immediately scream bloody murder.

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
user_avatar
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)
code: 'ECONNRESET'


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

curl -Is simg3.gelbooru.com/sample...3b8e56eabfbaa0be6f5ff.jpg
HTTP/1.1 200 OK
Date: Tue, 06 Nov 2018 17:17:11 GMT
Content-Type: image/jpeg
Content-Length: 118262
Connection: keep-alive
ect.

API works well.



lozertuser - Group: The Fake Administrator - Total Posts: 2230
user_avatar
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


1