MDeLuise / plant-it

🪴 Self-hosted, open source gardening companion app
https://plant-it.org
GNU General Public License v3.0
545 stars 19 forks source link

Illegal character in fragment at index 62 #67

Closed makanimike closed 9 months ago

makanimike commented 9 months ago

Avoid duplicated bug reports

Description

I just installed the docker version of the app. After initially running into the missing backend issue because I unnecessarily changed the ports in frontend.env and backend.env .

After fixing that with the help of another thread here (https://github.com/MDeLuise/plant-it/issues/60), it seemed to be up and running.

I created my user account. And then I got the following error. I get this error message every time I log in.

Illegal character in fragment at index 62: https://trefle.io/api/v1/species/search?limit=5&page=1&token=# put you key here, otherwise the "search" feature will include only user generated species&q=*

I am pretty sure content is not loading that should be there. Probably the database of plants. I can hit the +, but anything I type into a field will be removed as soon as I click outside of the field again.
If I go to Search (I assume that is normally the database), and start searching, I get the error above again:

image

Sometimes it will reference index 66.

Expected behaviour

content to be available, specifically a database of plants. or to at least be able to add my own plants.

Steps to reproduce

No response

Local environment

docker compose

Additional info

No response

makanimike commented 9 months ago

ok, that was incredibly stupid. RTFM

MDeLuise commented 9 months ago

Hi @makanimike, thanks for opening the issue.

From the reported error message, I suspect that in your backend.env file there is exactly the following line:

TRAFLE_KEY= # put you key here, otherwise the "search" feature will include only user generated species

If you don't want to use the trefle service, you can delete that line from the file. Instead, if you want to use the service, you have to change that line to something similar to

TRAFLE_KEY=xyzk...

where xyzk... is the api key obtained from the trefle account.


Let me know if removing the TRAFLE_KEY line from the file solves the issue.

makanimike commented 9 months ago

I got it working after signing up and getting the key :) of course.

there is still a tiny piece of constructive feedback we can get from this:
you have a little typo. it is trefle not trafle.

MDeLuise commented 9 months ago

Great to know that it works fine! 😁 Thank you for pointing out the typo, I already opened #17 in order to track that. It should be fixed in #66, so the next release of the system will fix that.

If you find some other bugs you're welcome to submit them!