dcaputo-harmoni / open-balena-admin

Open Balena Admin
MIT License
90 stars 18 forks source link

Error occurred while proxying request #18

Open tchey290 opened 1 year ago

tchey290 commented 1 year ago

Hi I have open balena and open balena admin installed and running on the same server and I have confirmed all my DNS entries are forwarded to the correct ip but I am getting this error in the browser console when creating a device:

GET http://postgrest.SERVER_DOMAIN:8000/application?is%20for-device%20type=eq.undefined&is%20host=eq.1&is%20of-class=eq.app&limit=1000&offset=0&order=id.asc 400 (Bad Request) fetchJ

Doing some more digging if I manually get that url I will get this error:

Error occurred while trying to proxy: postgrest.BALENA_DOMAIN:8000

and this error in the postgrest docker container:

[HPM] Error occurred while proxying request SERVER_IP:8000/ to http://127.0.0.1:3000/ [ECONNRESET]

There doesn't appear to be any issue connecting to the database as I see this in the logs as well:

Attempting to connect to the database...
Connection successful
luisgs7 commented 6 months ago

Hi I have open balena and open balena admin installed and running on the same server and I have confirmed all my DNS entries are forwarded to the correct ip but I am getting this error in the browser console when creating a device:

GET http://postgrest.SERVER_DOMAIN:8000/application?is%20for-device%20type=eq.undefined&is%20host=eq.1&is%20of-class=eq.app&limit=1000&offset=0&order=id.asc 400 (Bad Request) fetchJ

Doing some more digging if I manually get that url I will get this error:

Error occurred while trying to proxy: postgrest.BALENA_DOMAIN:8000

and this error in the postgrest docker container:

[HPM] Error occurred while proxying request SERVER_IP:8000/ to http://127.0.0.1:3000/ [ECONNRESET]

There doesn't appear to be any issue connecting to the database as I see this in the logs as well:

Attempting to connect to the database...
Connection successful

I'm having the same problem, did you manage to solve it, if so, could you share the solution?

Thanks