API001warningPro

unhandled-api-error

API calls without error handling will crash on network failures

Applies to: Go, JavaScript, Python, Ruby, Rust, TypeScript

Why this matters

Network requests can fail for many reasons: server errors, timeouts, no internet. Without error handling, your app will crash or show confusing errors to users. Always handle the error case, even if it's just showing a friendly message.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, API001 includedstablestack explain API001

API001 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: API001