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

Index error on error handling due to updated Airtable error messaging. #38

Open
bmoe872 opened this issue Jun 14, 2022 · 0 comments
Open

Comments

@bmoe872
Copy link
Contributor

bmoe872 commented Jun 14, 2022

I think Airtable updated how they are handling errors, as we recently started getting problems on this line:

error_json = error.split("[Error: ")[1].rstrip("]")

Which is found in wagtail_airtable/mixins.py

The error above is coming in as:

'422 Client Error: Unprocessable Entity for url: https://api.airtable.com/v0/<base_name>/<table_name>'

Which is different from how the error messages used to come, which included brackets that the error was splitting on.

@bmoe872 bmoe872 changed the title Getting index error on Airtable errors Index error on error handling due to updated Airtable error messaging. Jun 14, 2022
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

No branches or pull requests

1 participant