isamplesorg / isamples_inabox

Provides functionality intermediate to a collection and central
0 stars 1 forks source link

Leaflet heatmap API call returning 500 error #331

Closed dannymandel closed 6 months ago

dannymandel commented 7 months ago

@rdhyee reported this is returning a 500 error:

curl -X 'GET' \
  'https://central.isample.xyz/isamples_central/things_leaflet_heatmap?query=%2A%3A%2A&min_lat=-24.5&max_lat=49.4&min_lon=-124.73&max_lon=-66.95' \
  -H 'accept: application/json'

On investigation, I traced it back to the following error in solr:

2023-11-25 17:40:27.458 ERROR (qtp586358252-85) [isb_core_records shard1 core_node2 isb_core_records_shard1_replica_n1] o.a.s.h.RequestHandlerBase Client exception => org.apache.solr.common.SolrException: Can't parse rectangle '[-180.0 -90.0TO 180.0 90.0]' because: expecting '[bottomLeft TO topRight]'
    at org.apache.solr.util.SpatialUtils.parseRectangeSolrException(SpatialUtils.java:164)

It looks like we're missing whitespace in this: [-180.0 -90.0TO 180.0 90.0]