Closed pashagolub closed 2 months ago
You can delete the 1st part about blank screen. That was already solved by you. Problem here is only 2nd part. Maybe next time I report errors I should do that separately 😁 Sorry for the confusion.
Would you please provide steps to reproduce the error? Thanks
Steps to reproduce:
Ough, now I need to buy one more computer.... ;-)
I tried that again with freshly built docker image about an hour ago.
I did that using 2 virtual computers on 1 physical. Maybe you can try it from phone connected to the same wifi?
I guess there is some setting in UI that represent endpoint of backend pgwatch that is currently set to http://localhost:8080. This setting needs to be dynamicaly derived from host you call UI from or maybe set manually when deployed by env variable to host's external IP and port? Calling backend from frontend is tricky 😁
ok, thanks. There was an easier way to reproduce the issue: http://127.0.0.1:8080/
But I guess it still works if it finds backend at localhost:8080, if you run it from different device where there is nothing on port 8080 it will throw timeout but this timeout just show error message "Undefined" (as there is nothing in response body I guess)?
Thanks for quick fix. It is working now.
Discussed in https://github.com/cybertec-postgresql/pgwatch/discussions/523