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

RequiredError appears to be meaningless #270

Open
jackofsometrade opened this issue Sep 21, 2023 · 0 comments
Open

RequiredError appears to be meaningless #270

jackofsometrade opened this issue Sep 21, 2023 · 0 comments

Comments

@jackofsometrade
Copy link

jackofsometrade commented Sep 21, 2023

Summary

What is RequiredError? The postcards API (among others) appears to throw an axios error, but the type definition indicates it throws RequiredError and there doesn't seem to be any documentation about that.

Expected Behavior

API requests should throw a meaningful type of error in order to create reliable error handling.

Current Behavior

It is unclear what is thrown when an API request fails.

Possible Solution

Identify the thrown type and update the typedefs, or provide examples on how to handle errors, e.g. parsing response status codes.

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

No branches or pull requests

1 participant