Lon Nix
10/13/2021, 5:02 PMZanie
10/13/2021, 5:04 PMprefect
installed and run the CLI command there.prefect
installed just for this taskLon Nix
10/13/2021, 5:06 PMprefect
and it said command not foundXinchi He
10/13/2021, 5:09 PMprefect
via pip
And put
[server]
host = "http://<apollo pod ip>"
in your local ~/.prefect/config.toml
fileZanie
10/13/2021, 5:14 PMgraphql
pod has it installedLon Nix
10/13/2021, 5:18 PMprefect get projects
I get this
prefect.exceptions.AuthorizationError: Malformed response received from Cloud - please ensure that you are authenticated. See `prefect auth login --help`.
I am running prefect server though, so there aren't api keys to use with prefect auth login
Zanie
10/13/2021, 8:11 PMprefect backend server
Lon Nix
10/13/2021, 8:12 PMZanie
10/13/2021, 8:12 PMLon Nix
10/13/2021, 8:13 PMbackend = "server"
[server]
host = "<http://my.domain>"
port = "80"
however when I run prefect get projects I get this
prefect.exceptions.ClientError: 400 Client Error: Bad Request for url: <https://my.domain:443/>
This is likely caused by a poorly formatted GraphQL query or mutation but the response could not be parsed for more details
It looks like apollo redirects 80 to 443 and the cli doesn't handle thatZanie
10/13/2021, 8:57 PMprefect diagnostics
?Lon Nix
10/13/2021, 8:59 PM{
"config_overrides": {
"backend": true,
"server": {
"host": true,
"port": true
}
},
"env_vars": [],
"system_information": {
"platform": "Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.33",
"prefect_backend": "server",
"prefect_version": "0.15.6",
"python_version": "3.9.6"
}
}
Zanie
10/13/2021, 9:04 PM❯ ipython
Python 3.8.8 (default, Feb 24 2021, 13:46:16)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.25.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from prefect import Client
In [2]: client = Client()
In [3]: client.api_server
Out[3]: '<http://localhost:4200>'
Lon Nix
10/13/2021, 9:19 PM~: cat test.py
from prefect import Client
client = Client()
print(client.api_server)
~: python test.py
<http://prefect-apollo.oh-aws-us-east-1-app-dev.ovhl.io:80>
Xinchi He
10/13/2021, 9:29 PMbackend.toml
that located at ~/.prefect/backend.toml
backend = "server"
[server]
host = "http://<my server ip>"
port = "4200"
host_port = "4200"
endpoint = "${server.host}:${server.port}"
Lon Nix
10/13/2021, 9:30 PMZanie
10/13/2021, 10:24 PMbackend.toml
is technically for internal use but it should not be causing this error. I'm a bit confused that you list 4200 there but you're connecting to 80 in your examples?Lon Nix
10/14/2021, 2:20 PMZanie
10/14/2021, 3:38 PMLon Nix
10/14/2021, 3:47 PMXinchi He
10/14/2021, 3:48 PM