Skip to content

Send proper Error message on API OutOfMemoryError #185

Open
@SlowMo24

Description

@SlowMo24

Use Case Description

Too large bpolys can overcharge the ohsome api depending on its settings (e.g. with a 3MB geojson of 900 polygons with an avg of 109 vertices). Sending this request will (after some time) return the following "error":

    "status": "200,\n  \"error\" : \"OK\""
    "message": "java.lang.OutOfMemoryError\",\n  \"path\" : \"/elements/geom"

This message is confusing (error and OK at the same time) and does not help the user how to overcome this issue or what went wrong.

Request Description

The returned message should be improved, even though it may not be cause by the ohsome-api itself but by the used framework.

ohsome-py logs: errorOnLargeBuffer.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:lowShould be quite a far way down on the agenda

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions