https://prefect.io logo
Title
k

Kamil Okáč

03/31/2020, 9:22 AM
Hello! I just tried local UI with "prefect server start", but http://localhost:8080/ returns just a blank page. Console says:
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

Maxime Lavoie

03/31/2020, 12:08 PM
I also get a blank page, console says this somewhere in the stack:
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

Benjamin Filippi

03/31/2020, 12:31 PM
Hi same here, no explicit error showing, only log is ui_1     | 172.20.0.1 - - [31/Mar/2020:12:30: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

emre

03/31/2020, 12:49 PM
@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

Scott Zelenka

03/31/2020, 1:22 PM
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

josh

03/31/2020, 1:32 PM
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

Maxime Lavoie

03/31/2020, 1:46 PM
Thanks @josh, I confirm, it’s working now on my end
🙂 1
🙌 1
b

Benjamin Filippi

03/31/2020, 1:53 PM
Same here
🙂 1
👍
s

Scott Zelenka

03/31/2020, 1:54 PM
@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

emre

03/31/2020, 1:55 PM
yup, works for me too, pulling the latest ui image was enough. thanks @josh !
🙂 1
j

josh

03/31/2020, 1:55 PM
Yeah definitely @Scott Zelenka we’re ironing out the CI process right now!
👍 2
@Marvin archive “Server UI `Cannot read property 'substr' of undefined`”