LiquidGalaxyLAB / Presentation-Tool

The presentation tool idea is to create an interface that is capable to create different sets of data configuration to be displayed on a Liquid Galaxy
Apache License 2.0
0 stars 4 forks source link

[Bug] Uncaught (in promise) DOMException: Failed to execute 'open' on 'XMLHttpRequest #20

Closed Aju100 closed 3 years ago

Aju100 commented 3 years ago

Hello opensource enthusiast,

I have been gone through the README file and install all the required dependencies for the backend and frontend. I get a few errors in the frontend ie. console. Can you please explain what it is ?? Is it a cors issue? error

Looking forward to a positive response on it.

KarinePistili commented 3 years ago

I think it is not being capable of getting the data from the database. As soon as it opens the homepage there is a request to get all presentations stored in mongo. So a few things for you to investigate:

try to verify those, and if you still can find the problem, we can think a little bit more on what could it be

Aju100 commented 3 years ago

Hi, @KarinePistili ,

Yes I have the following things

content of .env

    VUE_APP_LG_IP=ip_of_my_machine_as_I_had_installed_on_my_machine
    VUE_APP_LG_PORT=127.0.0.1:3000

I wanted to know my env properly configure or not, or there are other problems?

I am looking positive message on this issue as I may not successfully create any new presentation. Thank you

Regards, Aju Tamang

KarinePistili commented 3 years ago

Oh I see now @Aju100 , the problem is on the .env. In the PORT var you need to put only the port you are using, then in your case it will be only 3000. It should look like this for example:

VUE_APP_LG_IP=192.168.0.112
VUE_APP_LG_PORT=3000

What was happening is that the frontend was trying to make a request with https://localhost:127.0.0.1:3000, so that is a invalid url and that's why it wasn't working