Closed salix-d closed 1 year ago
Seems like the Taxonomy API server can't handle single quotes characters.
\'
\\'
> bold::bold_tax_name("Chlamydomonas sp. 'Chile J'") Error: Internal Server Error (HTTP 500) > bold::bold_tax_name(curl::curl_escape("Chlamydomonas sp. 'Chile J'")) input 1 Chlamydomonas%20sp.%20%27Chile%20J%27 > bold::bold_tax_name("Chlamydomonas sp. \'Chile J\'") Error: Internal Server Error (HTTP 500) > bold::bold_tax_name("Chlamydomonas sp. \\'Chile J\\'") taxid taxon tax_rank tax_division parentid parentname specimenrecords input 1 1082557 Chlamydomonas sp. 'Chile J species Plantae 440637 Chlamydomonas 1 Chlamydomonas sp. \\'Chile J\\'
The arguments should be checked for single quotes and fixed before building the URL(s).
related: https://github.com/ropensci/bold/issues/85#issuecomment-1111085637
Made a check and fix function to fix this and the problem with names ending with a dots (sp.) or closing parenthesis (#85). Will contact bold to let them know.
Seems like the Taxonomy API server can't handle single quotes characters.
\'
: same error\\'
: returns record(s)The arguments should be checked for single quotes and fixed before building the URL(s).