For an institution code query, a 500 error is returned because of a missing object property that is no longer used.
curl 'http://beta-search.idigbio.org/v2/mapping/' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'Referer: http://beta.idigbio.org/portal/search' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36' -H 'Sec-Fetch-Mode: cors' -H 'Content-Type: application/json' --data-binary '{"rq":{"institutioncode":"a"},"type":"auto","threshold":100000}' --compressed
{"error":"Cannot read property 'doc_count' of undefined"}
For an institution code query, a 500 error is returned because of a missing object property that is no longer used. curl 'http://beta-search.idigbio.org/v2/mapping/' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'Referer: http://beta.idigbio.org/portal/search' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36' -H 'Sec-Fetch-Mode: cors' -H 'Content-Type: application/json' --data-binary '{"rq":{"institutioncode":"a"},"type":"auto","threshold":100000}' --compressed {"error":"Cannot read property 'doc_count' of undefined"}