Closed Szymok closed 8 months ago
Hi @Szymok, thanks for opening the issue
Could you please provide the backend.env
and frontend.env
file you are using? It would be also useful to have the docker compose log
Here is my stack.env which i am using in portainer, The differenxe is that i removed one var that was duplicated.
Docker compose olgs? From containers?
Usually on pc the docker compose log is shown running docker-compose logs
, but I see that you're using a mobile client and I don't know how you can retrieve it from that.
Anyway I think the problem could be related to the API_URL
parameter, you set it as http://192.168.101.20:3090/api
, but the backend
service is exposed at port 9092
in your deployment. So I think someone else is responding to the frontend
request.
Please try to modify the API_URL
to http://192.168.101.20:9092/api
, and let me know if this fix the problem.
Yay, what a stupid mistake from my side! Thank you for help, i am gonna to add all my plants to this app :D
Glad to know that the problem is now fixed, and thanks for using the project! 😁 Happy planting 🪴
Avoid duplicated bug reports
Description
After deploying the plant-it app on a Raspberry Pi using Portainer and Ubuntu, I encounter a 405 error when attempting to create an account or log in. The error message is displayed in a popup with an empty message body.
Expected behaviour
I would expect the account creation or login process to complete successfully without any errors, allowing me to access the plant-it app's features.
Steps to reproduce
Deploy the plant-it app using the provided docker-compose file on a Raspberry Pi with Portainer and Ubuntu. Navigate to the frontend service on port 3090. Attempt to create a new account or log in with existing credentials. Observe the 405 error in a popup window.
Local environment
Raspberry Pi model: 4B Ubuntu version: 22.01 Portainer version: 2.19.4 Browser and version: Edge v122.0.2365.92
Additional info
The docker-compose file has been configured to expose the backend service on port 9092 and the frontend on port 3090. The database service is exposed on port 3307. The error occurs when the frontend service makes a POST request to the /api/authentication/signup endpoint. Screenshot of the error is attached (attach the screenshot you provided).