Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

500 server error when requesting nearby hospitals #21

Open
chrisbartoloburlo opened this issue Oct 18, 2022 · 0 comments
Open

500 server error when requesting nearby hospitals #21

chrisbartoloburlo opened this issue Oct 18, 2022 · 0 comments

Comments

@chrisbartoloburlo
Copy link

chrisbartoloburlo commented Oct 18, 2022

When sending the following request:

curl -v\
  --url 'http://localhost:8080/v1/hospitais/maisProximo?lat=-27.86&lon=153.35&raioMaximo=0.0' 

I get the following error:

{"timestamp":"2022-10-18T11:49:07.680+0000","status":500,"error":"Internal Server Error","message":"Query failed with error code 2 and error message 'Legacy point is out of bounds for spherical query' on server localhost:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 2 and error message 'Legacy point is out of bounds for spherical query' on server localhost:27017","path":"/v1/hospitais/maisProximo"}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant