Api not fetching data
Hello! I have learnt the concepts of async await and fetch() method in js and I'm trying to practice it through random quote generator but I'm facing some issues
Issue:
The api is not fetching the data. I have checked the console tab the event listener is working but it gives me errors on fetching the data
I have gotten the api url from a github repo provided in the yt description of a video
9 Replies
Please provide the errors

These are the errors in my console i have searched about them and i have seen these suggestions there is not any issue with my Internet and i have also checked for the url its correct
that means it can't resolve the name - there's no way to fix this
looks like it's no longer maintained. There's a certificate warning when you go there in your browser, though that shouldn't cause a name not resolved error (but a different one). Here's the issue where folks are discussing this particular API being down: https://github.com/lukePeavey/quotable/issues/257
GitHub
API is down · Issue #257 · lukePeavey/quotable
Hi there, I just wanted to let you know that it looks like your API is currently down. I'm experiencing some issues connecting and wanted to give you a heads up so you can check it out. Thanks ...
there's drop-in alternatives in the comments to that issue, though keep in mind that you're trusting randos on the internet for those links. Use at your own risk (even if it should be minimal)
Okay thanks!
There's the public API that has a bunch of APIs that you can use in projects like this. You might find one you like
Ok