Hello! I just tried local UI with "prefect server ...
# prefect-community
k
Hello! I just tried local UI with "prefect server start", but http://localhost:8080/ returns just a blank page. Console says:
Copy code
vue-apollo.js:14 Uncaught TypeError: Cannot read property 'substr' of undefined
    at Module.56d7 (vue-apollo.js:14)
    at c (bootstrap:89)
    at Object.0 (app.e76c6ad2.js:1)
    at c (bootstrap:89)
    at t (bootstrap:45)
    at bootstrap:267
    at app.e76c6ad2.js:1
1
3
m
I also get a blank page, console says this somewhere in the stack:
Copy code
hasura_1   | {"internal":"could not connect to server: Connection refused\n\tIs the server running on host \"postgres\" (172.18.0.2) and accepting\n\tTCP/IP connections on port 5432?\n","path":"$","error":"connection error","code":"postgres-error"}
1
b
Hi same here, no explicit error showing, only log is ui_1     | 172.20.0.1 - - [31/Mar/20201230:04 +0000] “GET /favicon.ico HTTP/1.1” 200 15406 “http://localhost:8080/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36” “-”
e
@Maxime Lavoie I am getting the exact same log, it occurs before the
postgres
container logs that it is ready to accept connections in my case. The
hasura
container did not log anything else after this error, therefore I believe it stops trying to connect to the
postgres
container after 1 failed attempt.
s
I'm seeing this error as well, oddly enough when I fist tried it yesterday this error was not present. It seems to be related to Vue Apollo, in that the way the
ui
Dockerfile is structured, it's serving HTML/JS files, so the
process.env.VUE_APP_GRAPHQL_HTTP
variable would be undefined, as it doesn't seem to be set during the "build" of the Vue application.
j
Getting the same, looking into it
Hey team, the
latest
images that this command defaults to were rebuilt and it should be working now. Let me know if it doesn’t
👍 2
m
Thanks @josh, I confirm, it’s working now on my end
🙂 1
🙌 1
b
Same here
🙂 1
👍
s
@josh could y`all put similar version tags on these Docker images, like you do for the
prefecrhq/prefect
ones? I like to pin down versions when deploying
e
yup, works for me too, pulling the latest ui image was enough. thanks @josh !
🙂 1
j
Yeah definitely @Scott Zelenka we’re ironing out the CI process right now!
👍 2
@Marvin archive “Server UI `Cannot read property 'substr' of undefined`”