Skip to content

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

@bmoe872

Description

@bmoe872

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions