gbif / gbif-api

GBIF API
Apache License 2.0
28 stars 5 forks source link

Species Match API Returning 404 for Two-Letter Genus Names When Using genus Parameter #150

Closed arhyneRWU closed 2 weeks ago

arhyneRWU commented 2 weeks ago
  1. Fails (404):

Query: https://api.gbif.org/v1/species/match?name=Aa&strict=false&verbose=true&kingdom=Plantae&genus=Aa Response: 404 - Undocumented Error: response status is 404

  1. Unexpected HIGHERRANK Response:

Query: https://api.gbif.org/v1/species/match?name=Aa%20lehmannii&strict=false&verbose=true&kingdom=Plantae&genus=Aa Response: json


{
  "usageKey": 2850872,
  "scientificName": "Aa Rchb.f.",
  "canonicalName": "Aa",
  "rank": "GENUS",
  "status": "ACCEPTED",
  "confidence": 99,
  "note": "Similarity: name=100; classification=6; rank=12; status=1; score=119; nextMatch=5",
  "matchType": "HIGHERRANK",
  "kingdom": "Plantae",
  ...
}

Successful Match without genus Parameter:

Query: https://api.gbif.org/v1/species/match?name=Aa%20lehmannii&strict=false&verbose=true&kingdom=Plantae Response:json


{
  "usageKey": 9433259,
  "scientificName": "Aa lehmannii Rchb.f. ex Szlach. & Kolan.",
  "canonicalName": "Aa lehmannii",
  "rank": "SPECIES",
  "status": "ACCEPTED",
  "confidence": 99,
  "matchType": "EXACT",
  ...
}

Passes (EXACT response for longer name):

Query: https://api.gbif.org/v1/species/match?name=Aloe&strict=false&verbose=true&kingdom=Plantae&genus=Aloe Response: json

{
  "usageKey": 2770879,
  "scientificName": "Aloe L.",
  "canonicalName": "Aloe",
  "rank": "GENUS",
  "status": "ACCEPTED",
  "confidence": 95,
  "note": "Similarity: name=100; authorship=0; classification=6; rank=0; status=1; score=107; nextMatch=0",
  "matchType": "EXACT",
  ...
}
mdoering commented 2 weeks ago

It was a code bug when name and genus had just 2 letter genera content. Will be deployed in a few days to prod

arhyneRWU commented 2 weeks ago

Markus

Thanks so much. I’ve got another bug to report I’ll get that one reported shortly. I work in python with a little C, but no java. Always been super impressed how well scaled this API is.

Andy

-- Andrew L. Rhyne, Ph.D. Professor of Marine Biology Department of Biology and Marine Biology Roger Williams University One Old Ferry Road Bristol, RI 02809 @.*** https://aquariumtradedata.org/ https://wildlifedetection.org/ https://www.larvalcultureproject.org/

From: Markus Döring @.> Date: Wednesday, October 30, 2024 at 9:40 AM To: gbif/gbif-api @.> Cc: Rhyne, Andrew @.>, Author @.> Subject: [EXT] Re: [gbif/gbif-api] Species Match API Returning 404 for Two-Letter Genus Names When Using genus Parameter (Issue #150)

It was a code bug when name and genus had just 2 letter genera content. Will be deployed in a few days to prod

— Reply to this email directly, view it on GitHubhttps://github.com/gbif/gbif-api/issues/150#issuecomment-2447199346, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD4EODSS25ZGTFZJZZ3F6F3Z6DOVFAVCNFSM6AAAAABQ2Y32CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXGE4TSMZUGY. You are receiving this because you authored the thread.Message ID: @.***>