Skip to content

Inserting metadata that is not a string throws confusing error #2455

@simonw

Description

@simonw

I got this on the Datasette homepage:

Error binding parameter 3 - probably unsupported type.

Turns out it was because I was running against old metadata.json with this in it:

                "units": {
                    "units": {
                        "distance": "m",
                        "frequency": "Hz"
                    }
                }

And this was tripping up the code here:

datasette/datasette/app.py

Lines 766 to 767 in 1902735

await self.get_internal_database().execute_write(
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions