species request causing data array to be empty
nitinR9 opened this issue · comments
Describe the bug
When requesting API for 'ficus-microcarpa' through URL 'https://trefle.io/api/v1/species/search?token=ACCESS_TOKEN&q=Ficus microcarpa' data array is returning empty data array. Does the data for this species not exists?
To Reproduce
Steps to reproduce the behavior(using nodejs):
const fetch = require('node-fetch') ; require('dotenv').config() ; const access_token = process.env.ACCESS_TOKEN ; async function request(){ const dataObj = await fetch(
https://trefle.io/api/v1/species/search?token=${access_token}&q=ficus microcarpa`)
const json = await dataObj.json() ;
return json
}
request().then( (json) => {
console.log(json)
})`
Expected behavior
The result must be there as its records are present over other websites.
Hello @splintercell9dev. This species were missing, so it has been added properly.
@lambda2 Now this species is fixed. Now another species that was working perfectly before i.e bauhinia-blakeana
is now giving error on request
{ "error": true, "message": "can't find record: \"bauhinia-blakeana\"" }
Hey, indeed some changes has been made to this species, that is in fact an artificial hybrid. The slug is now bauhinia-x-blakeana