Open Dvalin21 opened 1 week ago
Hi there,
Could you please confirm if the "invalid API key" message appears specifically when you are in the "Search" section, or does it also show up in other sections (like the Home page)?
Additionally, could you try running the following command in your shell to check if your FloraCodex key is working correctly (make sure to replace <your_key>
with your actual API key):
curl -X GET "https://api.floracodex.com/v1/species/search?q=Monstera&page=0&limit=3&key=<your_key>"
Let me know if this returns a successful response or an error.
Hi there,
Could you please confirm if the "invalid API key" message appears specifically when you are in the "Search" section, or does it also show up in other sections (like the Home page)?
Additionally, could you try running the following command in your shell to check if your FloraCodex key is working correctly (make sure to replace
<your_key>
with your actual API key):curl -X GET "https://api.floracodex.com/v1/species/search?q=Monstera&page=0&limit=3&key=<your_key>"
Let me know if this returns a successful response or an error. I get the invalid API key error before I even get to put in the server ip address.
{"data":[{"id":"609e2c34ca233f0aecfa9707","author":"Schott","common_name":"Adanson's Monstera","slug":"609e2c34ca233f0aecfa9707","scientific_name":"Monstera adansonii","status":"ACCEPTED","rank":"SPECIES","family":"Araceae","genus":"Monstera","genus_id":"609cccffb0f222c82c6204fe","image_url":"https://inaturalist-open-data.s3.amazonaws.com/photos/21333744/original.jpg","links":{"self":"/v1/species/609e2c34ca233f0aecfa9707","genus":"/v1/species/609cccffb0f222c82c6204fe","plant":"/v1/plants/609e2c34ca233f0aecfa9707"},"meta":{"last_modified":"2021-06-08T06:49:56.226Z"}},{"id":"609cccffb0f222c82c6204fe","author":"Adans.","slug":"609cccffb0f222c82c6204fe","scientific_name":"Monstera","status":"ACCEPTED","rank":"GENUS","family":"Araceae","genus":"Monstera","genus_id":"609cccffb0f222c82c6204fe","image_url":"https://inaturalist-open-data.s3.amazonaws.com/photos/73638885/original.jpg","links":{"self":"/v1/species/609cccffb0f222c82c6204fe","genus":"/v1/species/609cccffb0f222c82c6204fe","plant":"/v1/plants/609cccffb0f222c82c6204fe"},"meta":{"last_modified":"2021-06-08T06:15:14.336Z"}},{"id":"609e28e2ca233f0aecfa8bbd","author":"Liebm.","common_name":"Tarovine","slug":"609e28e2ca233f0aecfa8bbd","scientific_name":"Monstera deliciosa","status":"ACCEPTED","rank":"SPECIES","family":"Araceae","genus":"Monstera","genus_id":"609cccffb0f222c82c6204fe","image_url":"https://inaturalist-open-data.s3.amazonaws.com/photos/74267/original.jpg","links":{"self":"/v1/species/609e28e2ca233f0aecfa8bbd","genus":"/v1/species/609cccffb0f222c82c6204fe","plant":"/v1/plants/609e28e2ca233f0aecfa8bbd"},"meta":{"last_modified":"2021-06-08T06:34:03.150Z"}}],"self":"/v1/species/search?q=Monstera&page=0&limit=3&key=mykey","first":"/v1/species/search?q=Monstera&page=1&limit=3&key=mykey","next":"/v1/species/search?q=Monstera&page=1&limit=3&key=mykey","last":"/v1/species/search?q=Monstera&page=1&limit=3&key=mykey","meta":{"total":3}}
[error] | 16:18:20 815ms | Invalid API Key
[
at Object.d (http://10.0.0.29:3088/main.dart.js:3426:19)
at http://10.0.0.29:3088/main.dart.js:30943:9
at aW6.a (http://10.0.0.29:3088/main.dart.js:4771:63)
at aW6.$2 (http://10.0.0.29:3088/main.dart.js:43031:14)
at aUV.$1 (http://10.0.0.29:3088/main.dart.js:43025:21)
at Object.aVX (http://10.0.0.29:3088/main.dart.js:5044:19)
at a0_.<anonymous> (http://10.0.0.29:3088/main.dart.js:118376:10)
at a4W.r_ (http://10.0.0.29:3088/main.dart.js:44162:12)
at aL0.$0 (http://10.0.0.29:3088/main.dart.js:43499:11)
at Object.Ag (http://10.0.0.29:3088/main.dart.js:4919:40), null]
Avoid duplicated bug reports
Description
Just as it say in the title. I look into the logs and it says that its using ForaCodex, but the moment I go to the frontend it say invalid API key. Not sure what could be causing this issue.
Local environment
Env