-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bad error handling #612
Comments
|
Another case from If you don't have valid credentials, the error is rather terse:
I mean it's OK but I suspect there's more details coming down from commcare and surely we can do more with this? The actual message is encoded in the body, and the request comes from axios. You should just be able to run this:
With this credential:
And you'll get the 401 back. |
Commcare again - see OpenFn/adaptors#591 On point 5, the adaptor threw some kind of error. Fine. But it would be nice to see the sack trace in this case to understand WHERE the error came from. I still don't think stack traces are useful in all cases. Maybe just for adaptor errors? |
We've encountered some cases of bad error handling.
I think the problem is that the logger is doing a bad job of console.logging an error object.
We can see this in mailgun.
The text was updated successfully, but these errors were encountered: