cheshire-cat-ai / admin-vue

Admin panel of the Cheshire Cat AI
GNU General Public License v3.0
32 stars 28 forks source link

First API call from admin to core should say if there is a connection problem #66

Closed pieroit closed 9 months ago

pieroit commented 9 months ago

At the moment when the admin connects to core, it shows the API_KEY modal both if an API_KEY is requested to access the endpoints, but also when there are connection issues (most of the time noobs that misconfigured or not configured at all CORE_HOST in .env file). Can we give out a proper error message for wrong address?

Another option is to follow @sambarza's suggestion and instead of injecting CORE_HOST to the admin, just make it connect to the same address it has been served (window.location.something...)

kodaline commented 9 months ago

@pieroit I might look at this one if you want

zAlweNy26 commented 9 months ago

Duplicate of #63