lappis-unb / BotFlow

BotFlow - visual content manager for simple Rasa chatbots
GNU General Public License v3.0
30 stars 12 forks source link

Configuration problem breaks dev environment #157

Open Miguel-Alves opened 3 years ago

Miguel-Alves commented 3 years ago

When running front-end dev environment we've faced a problem that is related to the configuration the project established as standard. This error happens specifically on file _urlroutes.js when trying to import the variable REACT_APP_URL_API.

This variable is mentioned on project's README file, to be set on the docker-compose.yml file according to the server where the API is running.

But, even when setting the correct server, all the requisitions made to the API are made to a broken URL. This error happens here:

image FILE: _urlroutes.js

This usage of the variable brings the adress set, but unites it with an "undefined" word before adding the rest of the path to the API. So, its breaks all the callings to the API.

Although this is a bug that happens when using the dev environment, it does not happen when using docker.

Tasks

Acceptance criteria

Miguel-Alves commented 3 years ago

So we(@AmandaMuniz) corrected this by changing the way we state the API adress;

image

By doing so, we did not break the docker behaviour and corrected the communication with the API on dev environment;.