Nekos-life / nekos-dot-life

Nekos.life wrapper.
MIT License
166 stars 33 forks source link

Bug report: I get ECONNREFUSED when I request from my app #39

Closed PuneetGopinath closed 2 years ago

PuneetGopinath commented 2 years ago

Describe the bug I am not sure if this is a bug, but when I request from my app (discord bot) it gives me error Error: connect ECONNREFUSED 0.0.0.0:443 But when I open the same url in my browser it works, so I doubt if this is a bug

To Reproduce Steps to reproduce the behavior:

Request to any endpoint of the nekos.life api v2 with nodejs + axios

Sample Code:

require("axios")({ method: "get", url: "https://nekos.life/api/v2/img/tickle" }).then(data => console.log(data.res)).catch(err => console.log(err));

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Additional context Also I didn't use this wrapper I just used the main api directly, I found this as the official wrapper so I came to report here Let me know if you want me to try with this wrapper

Thanks in advance

IamTails commented 2 years ago

sounds like you are using replit, please see https://blog.replit.com/family-friendly-dns

PuneetGopinath commented 2 years ago

Ohk, I will switch my host then Thanks