Kevin Weiler
10/01/2020, 1:26 PMLukas
10/01/2020, 1:34 PMPREFECT__SERVER__UI__HOST
should work I thinkKevin Weiler
10/01/2020, 1:36 PM<http://localhost:8080/settings.json>
when it should be going to <http://prefect/settings.json>
nicholas
base_url
variable in favor of a root /
which should fix thisKevin Weiler
10/01/2020, 1:58 PM0.13.8
nicholas
Kevin Weiler
10/01/2020, 2:24 PM<http://localhostL4200/graphql>
even though I’ve configured the correct api url in PREFECT_SERVER__APOLLO_URL
I know I can set it manually on the page - will each user of this server UI need to set this manually?nicholas
localStorage.clear()
?Kevin Weiler
10/01/2020, 2:40 PMPREFECT_SRVER__UI__HOST = "<http://prefect-test.aq.tc>"
PREFECT_SERVER__APOLLO_URL = "<http://prefect-test-api.aq.tc/graphql>"
look right?PREFECT_SERVER__UI__HOST = "<http://prefect-test.aq.tc>"
PREFECT_SERVER__APOLLO_URL = "<http://prefect-test-api.aq.tc/graphql>"
nicholas
Kevin Weiler
10/01/2020, 2:43 PMbundle.esm.js:67 POST <http://localhost:4200/graphql> net::ERR_CONNECTION_REFUSED
nicholas
settings.json
file? I.e. try to visit http://localhost:8080/settings.jsonKevin Weiler
10/01/2020, 2:45 PM<http://prefect-test.aq.tc/settings.json>
and the contents are:
{
"server_url": "<http://prefect-test-api.aq.tc/graphql>"
}
nicholas
cmd + option + i
is the shortcut for mac), type localStorage.clear()
and press enter in the consoleKevin Weiler
10/01/2020, 2:47 PMnicholas
Kevin Weiler
10/01/2020, 2:48 PMnicholas
Kevin Weiler
10/01/2020, 2:50 PMnicholas
Kevin Weiler
10/01/2020, 2:58 PMnicholas
Kevin Weiler
10/01/2020, 3:00 PMlocalStorage
variable has a length of zero, so I don’t think it’s that. However, when I do a hard refresh, then it starts working. And it will continue to work until I open a new tabnicholas
Kevin Weiler
10/01/2020, 6:41 PMnicholas
Kevin Weiler
10/01/2020, 7:44 PMstate: {
backend: localStorage.getItem("backend") || "SERVER",
connected: !0,
connectionMessage: null,
connectionTimeout: null,
releaseTimestamp: null,
apiMode: null,
cloudUrl: "<https://api.prefect.io/graphql>",
retries: 0,
serverUrl: localStorage.getItem("server_url") || (null === (m = window.prefect_ui_settings) || void 0 === m ? void 0 : m.server_url) || "<http://localhost:4200/graphql>",
version: null
},
serverUrl
is the offending line - but I’m not a JS dev, so I don’t know what it does 🙂nicholas
api
store and is definitely where it's coming from, I think the problem is in the head script where the settings are pulled, it's possible there's a race condition that's not properly resolved on loadKevin Weiler
10/01/2020, 7:50 PMChris White
Marvin
10/05/2020, 12:30 AMKevin Weiler
10/05/2020, 6:53 PM