GIScience/ohsome-api

Internal Server Error (500 status code) with message "please call aggregateByGeometry [...]"

apibugsreporting opened this issue · 0 comments

Bug Description

I found several requests obtaining 500 status codes with the error message "please call aggregateByGeometry before setting any map or flatMap functions"

General Information

Please include the following general information about the issue and list any additional steps needed to reproduce the bug.

  • Version of the ohsome API [e.g. 1.5.0]
    • 1.6.1
  • Which API instance was requested [e.g. remote instance at https://api.ohsome.org/v1, local instance with an h2 file or connected to the cluster, etc.]
    • Remote instance at https://api.ohsome.org/v1
  • Affected endpoint(s) [e.g. /contributions/count]
    • All endpoints ending in /groupBy/boundary/groupBy/tag seem to be affected
  • URL of your request (and request body if applicable)
    • https://api.ohsome.org/v1/elements/area/density/groupBy/boundary/groupBy/tag?groupByValues=secondary_link%2Cgive_way&types=point%2Cline%2C&groupByKey=highway&keys=highway&format=geojson&time=2014-07-06&timeout=28&bcircles=n%3A8.717%2C49.417%2C6%7CQ%3A8.742145%2C49.424440%2C2
  • Used HTTP method [GET or POST]
    • Both
  • Utilized tool/library for the request [e.g. cURL, Postman, ohsome-py, etc.]

Expected Behaviour

A 500 status code (Internal Server Error) should not be returned. There is probably some uncaught exception in the code.

Further Information

Additional Information

Several test reports revealing this issue are available at the following URLs (they might take some time to load):