AtlasOfLivingAustralia / biocache-service

Occurrence & mapping webservices
https://biocache-ws.ala.org.au/ws/
Other
9 stars 26 forks source link

Search record giving error #753

Closed patkyn closed 2 years ago

patkyn commented 2 years ago

A user has reported that he had an issue while searching for a particular record:

https://biocache.ala.org.au/occurrences/search?q=text:lsid:urn:lsid:biodiversity.org.au:afd.taxon:871853f8-928f-4416-9973-a2c90fdbc271

The error comes from the biocache-service

Failed to get json from web service (https://biocache-ws.ala.org.au/ws/occurrences/search?q=text%3Alsid%3Aurn%3Alsid%3Abiodiversity.org.au%3Aafd.taxon%3A871853f8-928f-4416-9973-a2c90fdbc271&qualityProfile=ALA&start=0&pageSize=20&sort=first_loaded_date&dir=desc&qc=&facets=taxon_name%2Cfamily%2Cspecies_group%2Ccommon_name%2Cmonth%2Coccurrence_decade_i%2Cstate%2Cbasis_of_record%2Cmultimedia%2Coccurrence_status%2CcontentTypes%2Cduplicate_status%2Cinstitution_uid%2Cdata_resource_uid&flimit=10). class java.io.IOException Got a non-200 response from server (400) for URL: https://biocache-ws.ala.org.au/ws/occurrences/search?q=text%3Alsid%3Aurn%3Alsid%3Abiodiversity.org.au%3Aafd.taxon%3A871853f8-928f-4416-9973-a2c90fdbc271&qualityProfile=ALA&start=0&pageSize=20&sort=first_loaded_date&dir=desc&qc=&facets=taxon_name%2Cfamily%2Cspecies_group%2Ccommon_name%2Cmonth%2Coccurrence_decade_i%2Cstate%2Cbasis_of_record%2Cmultimedia%2Coccurrence_status%2CcontentTypes%2Cduplicate_status%2Cinstitution_uid%2Cdata_resource_uid&flimit=10; nested exception is java.io.IOException: Got a non-200 response from server (400) for URL: https://biocache-ws.ala.org.au/ws/occurrences/search?q=text%3Alsid%3Aurn%3Alsid%3Abiodiversity.org.au%3Aafd.taxon%3A871853f8-928f-4416-9973-a2c90fdbc271&qualityProfile=ALA&start=0&pageSize=20&sort=first_loaded_date&dir=desc&qc=&facets=taxon_name%2Cfamily%2Cspecies_group%2Ccommon_name%2Cmonth%2Coccurrence_decade_i%2Cstate%2Cbasis_of_record%2Cmultimedia%2Coccurrence_status%2CcontentTypes%2Cduplicate_status%2Cinstitution_uid%2Cdata_resource_uid&flimit=10
adam-collins commented 2 years ago

biocache-service should return 0 records not the error.

adam-collins commented 2 years ago

On second thought, since issue only occurs with patterns like field:field:urn... it should return an error.

Won't fix.