Skip to content

Propagate tiled error responses #29

@abbiemery

Description

@abbiemery

Currently we are just logging the endpoint we are going to, not the response. If an error is returned from tiled, this needs displaying on the glazed server.

Patricularly useful when doing a container view, if you try to view a table with a container endpoint you get this in the 404 response body from tiled,

{
  "detail": "The node at 5d8f5c3e-0e00-4c5c-816d-70b4b0f41498/primary/internal has structure family StructureFamily.table and this endpoint is compatible with structure families {<StructureFamily.container: 'container'>}"
}

But this unhelpful one from glazed

"message": "Tiled server error: HTTP status client error (404 Not Found) for url (http://127.0.0.1:8000/api/v1/container/full/5d8f5c3e-0e00-4c5c-816d-70b4b0f41498/primary/internal)",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions