1async function fetchUserData(userId) {
2 const response = await fetch(`/api/users/${userId}`);
3 const data = await response.json();
4 return data;
5}
6
7// Callers never know when the network returns 404/500
no lines flagged
#012PracticeEasy10 min · 50 XP
Async/Await Missing Error Boundary
This async function swallows all errors silently, making failures impossible to debug in production.
Flagged linesNo lines flagged yet
What's wrong?
Flag a line or write a note to submit.