-
Notifications
You must be signed in to change notification settings - Fork 403
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
No stack trace for AirtableError
#294
Comments
Official client error class does not extend `Error` so no stack trace :( See Airtable/airtable.js#294
Official client error class does not extend `Error` so no stack trace :( See Airtable/airtable.js#294
Thank you for calling this out. It's a good suggestion for us to extend |
This would be a very nice addition. It's a bit difficult to debug failures at the moment since you have add your own logging to identify where errors are occurring. |
Hi folks, our team lost some time in our new project since we we couldn't figure out where this error was coming from without a stack trace. Just want to add a vote to the suggestion of extending the |
I've raised a PR that fixes this: #402. This makes errors significantly easier to debug and trace down! Although note that this doesn't make the errors perfect - by the way the SDK is constructed errors that are raised in asynchronous contexts still sometimes don't have the most useful stacktraces. |
Is there any reason
AirtableError
is not extendingError
and therefore missing the stack trace so useful to debug errors?The text was updated successfully, but these errors were encountered: