Invalid JSON in post-result of POIS request for restaurants

When I try to get the restaurants within an rectangle I get the result:
error: SyntaxError: Unexpected token ‘N’, …" “bbox”: [NaN, NaN, "… is not valid JSON at JSON.parse () at XMLHttpRequest.onLoad (http://localhost:4200/vendor.js:134001:39) at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:7691:171) at http://localhost:4200/vendor.js:158243:49 at AsyncStackTaggingZoneSpec.onInvokeTask (http://localhost:4200/vendor.js:158243:30) at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:7691:54) at Object.onInvokeTask (http://localhost:4200/vendor.js:158545:25) at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:7691:54) at Zone.runTask (http://localhost:4200/polyfills.js:7496:37) at ZoneTask.invokeTask [as invoke] (http://localhost:4200/polyfills.js:7768:26)

  1. text: “{\“type\”: \“FeatureCollection\”, \“bbox\”: [NaN, NaN, NaN, NaN], \“features\”: [], \“information\”: {\“attribution\”: \”\\u00a9 openpoiservice by HeiGIT | Data from OpenStreetMap\“, \“version\”: \“0.1\”, \“timestamp\”: 1790874189, \“query\”: {\“request\”: \“pois\”, \“geometry\”: {\“bbox\”: [[15.393886628184239, 47.02095077521119], [15.40316566752611, 47.03111486335783]]}, \“limit\”: 200, \“filters\”: {\“category_ids\”: [570]}}}}”

That causes an JSON-Conversion-Error!

There should be some restaurants within the rectangle!

The method worked fine during last time!
What can I do?
Thank’s Gerhard Rock

Hey,

could you please provide the request that led to the errors you are experiencing, ideally in cURL-Format? That makes debugging this a lot easier.

Secondly, you can encapsulate answers and responses in ``` to format them verbatim as code, which makes it easier to understand what is going on.

Best regards

  curl -X POST \
  'https://api.heigit.org/openpoiservice/v0/pois' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
  -H 'Authorization: <redacted>' \
  -d '{"request":"pois","geometry":{"bbox":[[15.393619854429343,47.01811160642478],[15.416123810043741,47.0327939232227]]},"limit":200}'

API response:
{“type”: “FeatureCollection”, “bbox”: [NaN, NaN, NaN, NaN], “features”: [], “information”: {“attribution”: “\u00a9 openpoiservice by HeiGIT | Data from OpenStreetMap”, “version”: “0.1”, “timestamp”: 1790943838, “query”: {“request”: “pois”, “geometry”: {“bbox”: [[15.393619854429343, 47.01811160642478], [15.416123810043741, 47.0327939232227]]}, “filters”: {“category_ids”: [570]}, “limit”: 200}}}

!!! [NaN, NaN, NaN, NaN] is not a vailid JSON

Hey,

I forwarded this to our colleague most knowledgeable about the POI service.
They will have a look into it, but it may take a few days.

Best regards