Hello all. I'm trying to connect the CLI to our Pr...
# prefect-server
r
Hello all. I'm trying to connect the CLI to our Prefect Cloud. I have version 0.12.1 for the CLI and I'm getting this odd error:
Copy code
Traceback (most recent call last):
  File "flow.py", line 38, in <module>
    main()
  File "flow.py", line 36, in main
    flow.register(**register_params)
  File "/Users/rdh/Library/Caches/pypoetry/virtualenvs/pipelines-3RvCBXzu-py3.8/lib/python3.8/site-packages/prefect/core/flow.py", line 1479, in register
    registered_flow = client.register(
  File "/Users/rdh/Library/Caches/pypoetry/virtualenvs/pipelines-3RvCBXzu-py3.8/lib/python3.8/site-packages/prefect/client/client.py", line 687, in register
    res = self.graphql(
  File "/Users/rdh/Library/Caches/pypoetry/virtualenvs/pipelines-3RvCBXzu-py3.8/lib/python3.8/site-packages/prefect/client/client.py", line 226, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['create_flow_from_compressed_string'], 'message': '[{\'extensions\': {\'path\': \'$.variableValues\', \'code\': \'validation-failed\'}, \'message\': "no such type exists in the schema: \'flow_group_insert_input\'"}]', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
z
Hi @Rob Harrop! Just a couple of quick questions before we dig in. Which command are you trying to run via CLI, and can you confirm that you've run
prefect backend cloud
?
r
This was running
python myflow.py
where the python file is registering the flow. I ran
prefect backend cloud
and if I set incorrect credentials I can see that I get an auth error. My co-worker is able to run this exact same set of commands without issue.
z
Okay, got it. And can you verify that you're using a tenant-scoped token rather than a user-scoped/personal access token?
n
I just had the same problem, perhaps a better error message can be used here?