https://prefect.io logo
e

Eric

02/02/2021, 3:52 AM
hi Prefect, I noticed that the
prefect/cli/server.py
shows user can specify different ports to start the Prefect server services (i.e. graphql_port='xxxx', server_port='xxxx', etc.). But when I used the flow.register(project_name) in my script, the
prefect/core/flow.py
seems like using default 4200 port to register the flow and had no param to adjust the registering port in
register()
function, so it raised HTTPConnection error. Once I changed line 1666 - flow.py
client = prefect.Client()
with
client = prefect.Client(api_server='<http://localhost>:MODIFIED_PORT/')
and it works. Is this an issue here? Thank you 🙂