Skip to content

Use error types and messages from the API response#425

Open
EthanBehrends wants to merge 1 commit intoAirtable:masterfrom
EthanBehrends:use-error-types-and-message-from-api-response
Open

Use error types and messages from the API response#425
EthanBehrends wants to merge 1 commit intoAirtable:masterfrom
EthanBehrends:use-error-types-and-message-from-api-response

Conversation

@EthanBehrends
Copy link

I work at Lindy AI, where we have an Airtable integration using this SDK. I've noticed that there are a certain class of errors that aren't very helpful for our users, despite your API returning a much more actionable message. I see no reason to only use these error messages for certain status codes, so I've made updates to always return the response from the API when possible.

Example: For this API request, the API returns a message stating "Your record could not be created because the underlying table is externally", but the SDK just says "You are not authorized to perform this operation".

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant