gogs/go-gogs-client

getaddrinfo ENOTFOUND

mannycolon opened this issue · 1 comments

Scenario:

The user is logged into door43 then loses wifi connection and tries to upload a project to git.door.43.

You guys may have a better way for the client to handle this error but since I don't know I'm assuming there's not. Thus, I think if as I a client of gogs it's better if I get the 443 error status/message.

Error: getaddrinfo ENOTFOUND git.door43.org git.door43.org:443
    at errnoException (dns.js:28)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76)

nvm i didnt realized it was returning an object

{"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"git.door43.org","host":"git.door43.org","port":443}