Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fetching GIFs: FetchError: Failed to fetch #465

Open
Zombie92-v opened this issue Jan 22, 2025 · 1 comment
Open

Error fetching GIFs: FetchError: Failed to fetch #465

Zombie92-v opened this issue Jan 22, 2025 · 1 comment

Comments

@Zombie92-v
Copy link

this is my code:
const fetchGifs = async () => { try { setLoading(true); const { data } = await gf.trending({ limit: 10 }); setGifs(data); console.log(data) } catch (error) { console.error("Error fetching GIFs:", error); } finally { setLoading(false); } };
when it run, error:
Error fetching GIFs: FetchError: Failed to fetch

@giannif
Copy link
Collaborator

giannif commented Jan 22, 2025

@Zombie92-v this can happen for a few reasons, make sure you have a valid api key. Maybe you can look at the network request to get more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants