gbif / checklistbank

GBIF Checklist Bank
Apache License 2.0
31 stars 14 forks source link

Match api: fail with status 400 for #259

Closed MortenHofft closed 1 year ago

MortenHofft commented 1 year ago

The phylogeny tool looks up all sort of odd names. For example [Bauhinia] scandens var. horsfieldii ott493887 https://api.gbif.org/v1/species/match?verbose=true&name=[Bauhinia]%20scandens%20var.%20horsfieldii%20ott493887

But that result in an error HTTP Status 400 – Bad Request

Apparently it isn't possible to search for strings that contain [ or ]

MortenHofft commented 1 year ago

I'm closing this. Apparently the url encoder I used failed to encode the square brackets and I saw this issue. Made me think that square brackets ought to be allowed, reading more it looks to me like [ isn't a valid character anyhow.

A nicer error message would be appreciated though