You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose that this package either (1) has named error types that it returns (e.g. ErrNotFound), or that it at least wraps all errs with the API response status code.
The text was updated successfully, but these errors were encountered:
Debugging clearbit errors in our code has become a nightmare. This is what it looks like in our logs:
Manually debugging, I've realized that this is because the API is returning codes like 404 or 422.
Internally, we end up wrapping the errors with github.com/pkg/errors and having to return different types of errors:
I propose that this package either (1) has named error types that it returns (e.g. ErrNotFound), or that it at least wraps all errs with the API response status code.
The text was updated successfully, but these errors were encountered: