connect ECONNREFUSED
rrawann opened this issue · 4 comments
rrawann commented
How can solve this issue FetchError: request to https://fakestoreapi.com/products , reason: connect ECONNREFUSED 188.114.96.6:443
khanguslee commented
Do you have a code snippet on how you got that error? I am able to fetch data via that endpoint.
rrawann commented
This is a code snippt @khanguslee , it was working and fetching data without any issues
khanguslee commented
Your code looks good to me. Can you check if it works now? Sometimes the API is down as you can see from past closed issues.
Note that the API is a free service, so I wouldn't be shocked if people were unintentionally causing the server to crash.
rrawann commented
Yes it is work now after I run npm run build for the project, Thank you very much @khanguslee