-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Biocaches returns 500 error if query a bbox in the query of searching Acacia in the middle of ocean #876
Comments
it fails in last line facets.get("x1") because facets is an empty map the actual query being sent to solr is but the thing is the query itself returns 0 record which causes (facets.get("x1")) fail seems |
@nickdos SP expects a string
biocache-service:
but Is every call to |
@adam-collins - see comment above, can you answer that? |
@nickdos @adam-collins At this moment, SP cannot handle an empty "BBox", but I think anyway Biocache should return a meaningful info back. SP will update code after At this moment, SP created two promises : /bbox and /occurrences. If there is no occurrences, SP can display "no occurrences" warning. |
SP should report no occurrences. Not concerned about the 500 when there is no data for /bbox. |
@adam-collins SP can report no occurrences, after SP is able to catch the 500 error returned from /bbox query. I have fixed it up |
Hi @nickdos , the API is supposed to return a
|
Other geospatial libraries must have to deal with this... Maybe look into what Geotools does? My guess is |
Moving to biocache-service |
#876 return 0's bbox when no records
Prod url that fails https://biocache.ala.org.au/ws/mapping/bbox?q=-: |
Test is working for me - pass |
For example:
Suppose return a bbox when I search Acacia in the middle of ocean
https://biocache.ala.org.au/ws/webportal/bbox?q=qid:1634854192098&type=application/json
{
message: "null",
errorType: "Server error",
statusCode: 500
}
The text was updated successfully, but these errors were encountered: