Nathan Atkins
02/07/2021, 12:36 AMprefect
commands against my local server. I guess it could be a installation or configuration problem, but debugging makes it look like there is an issue with initializing Client objects to talk to the local server.
Specifically:
prefect create project my_project
and flow.register(project_name='tutorial')
Both generate prefect.utilities.exceptions.ClientError: Malformed response received from API.
errors.
If I debug both problems I wind up in prefect.client.Client.___init___()
where it looks like it sets the api_server to the cloud host because no api_server
is passed in. I have the backend set to to server
.
In prefect.cli.create.project()
Client().create_project(project_name=name, project_description=description)
it looks like the api_server=localhost
needs to be passed to Client.___init___()
or Client needs to do something other than
self.api_server = api_server or prefect.context.config.cloud.get("graphql")
Same issue in prefect.core.flow.py
I can connect to the server fine from my local browser or through cloud.prefect.io switched to the local server. (Nice feature by the way.)Jim Crist-Harif
02/08/2021, 4:04 PMNathan Atkins
02/08/2021, 4:58 PMJim Crist-Harif
02/08/2021, 5:03 PMprefect server start
to startup prefect server, the server version should match that of prefect (so also 0.14.6).
If you figure out any more details of this issue, please let me know. It is indeed odd that you're having this issue.prefect backend server
?Nathan Atkins
02/08/2021, 5:05 PMbackend = "server"
Client.___init___()
Jim Crist-Harif
02/08/2021, 5:08 PM~/.prefect/config.toml
at all?Nathan Atkins
02/08/2021, 5:09 PMJim Crist-Harif
02/08/2021, 10:26 PM