https://prefect.io logo
Title
p

psimakis

09/03/2020, 7:46 AM
Hello everyone, After upgrading from
0.12.2
to
0.13.5
a connectivity issue came up with the graphql component. Prefect server is running in a different server but the graphql url remains
<http://localhost:4200/graphql>
.
server.ui.graphql_url
was working great with version
0.12.2
but now I can't find any way to configure the graphql url properly. Below you will find the `config.toml`:
$ cat ~/.prefect/config.toml
[logging]
level = "INFO"

[api]
url = "<http://192.168.40.180:4200>"

[server.database]
host_port = "6543"

[context.secrets]
SLACK_WEBHOOK_URL = '<https://hooks.slack.com/services/xx/XX/Xx>'

[server.ui]
graphql_url = "<http://192.168.40.180:4200/graphql>"
In the image you can see a POC of the case. I'm a lit bit confused about the old and the new way to configure the prefect server. Have you any idea about this issue? If this issue has been already reported, feel free to delete this message. Thanks in advance.
feel free to answer in this SO question in order to enrich prefect's public resources
p

Pravin Dahal

09/03/2020, 12:20 PM
@psimakis Can you try the following URL (instead of http://localhost:4200/graphql): http://192.168.40.180:4200/graphql
Oh wait, I realize that it may not be what you are asking. What works for sure is changing that URL in the homepage itself. Not sure how that would be in the config file though.
By homepage, I mean here:
In your case, the Prefect Server GraphQL Endpoint will be different (i.e. http://192.168.40.180:4200/graphql)
j

Jenny

09/03/2020, 1:22 PM
Hi @psimakis - I think this discussion and ticket are about the same question: https://prefect-community.slack.com/archives/CL09KU1K7/p1597156144314400 The simplest way to update the server url, as Pravin Dahal mentioned, is to update it in the homepage of the ui.