https://prefect.io logo
Title
r

Rob Harrop

06/30/2020, 11:11 AM
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:
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

Zachary Hughes

06/30/2020, 1:16 PM
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

Rob Harrop

07/01/2020, 9:31 AM
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

Zachary Hughes

07/01/2020, 1:21 PM
Okay, got it. And can you verify that you're using a tenant-scoped token rather than a user-scoped/personal access token?
n

Nelson

09/03/2020, 2:46 PM
I just had the same problem, perhaps a better error message can be used here?