Hello Prefect Community! I’m running into an issu...
# ask-community
k
Hello Prefect Community! I’m running into an issue where the UI is attempting to post requests to the API using the default hostname
<http://localhost:4200/api>
instead of the one I’ve defined in the Helm values file:
Copy code
server:
  prefectApiUrl: <http://prefect.127-0-0-1.nip.io/api>
This setting has been in place for a while, and I recently tore down my local setup and spun it back up. Deployments are working, but the UI is unable to list the flows. I did test the route by manually posting, and it works—I’m just not sure why the UI is not using the defined route. Has something changed recently? Does anyone know how to resolve this issue?
j
Hi @KK7NZY - what version of the chart are you running?
k
Hi @Jamie Zieziula. Not sure. I am assuming the latest. I have the following in my tilt file. helm_repo("prefect-repo", "https://prefecthq.github.io/prefect-helm", labels="")
j
if you're on the latest version, you'll need to follow this upgrade guide. Namely, these values
Copy code
server:
  image:
    repository: prefecthq/prefect
    prefectTag: 3-latest
    pullPolicy: IfNotPresent
    pullSecrets: []
  prefectApiUrl: <http://localhost:4200/api>
  prefectApiHost: 0.0.0.0
need to be mapped to here
Copy code
global:
  prefect:
    image:
      repository: prefecthq/prefect
      prefectTag: 3-latest
      pullPolicy: IfNotPresent
      pullSecrets: []
    prefectApiUrl: <http://localhost:4200/api>
    prefectApiHost: 0.0.0.0
k
AH.. okay. That is good to know. Thank you! I will make the update.
j
np!