Pedro Machado
08/05/2020, 4:58 AMTraceback (most recent call last):
File "/home/pedro/prefect/my_flow.py", line 187, in <module>
flow.register(project_name="myproject", labels=["aws"])
File "/home/pedro/.venvs/prefect/lib/python3.7/site-packages/prefect/core/flow.py", line 1581, in register
no_url=no_url,
File "/home/pedro/.venvs/prefect/lib/python3.7/site-packages/prefect/client/client.py", line 668, in register
project = self.graphql(query_project).data.project # type: ignore
File "/home/pedro/.venvs/prefect/lib/python3.7/site-packages/prefect/client/client.py", line 238, in graphql
raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['project'], 'message': 'field "project" not found in type: \'query_root\'', 'extensions': {'path': '$.selectionSet.project', 'code': 'validation-failed', 'exception': {'message': 'field "project" not found in type: \'query_root\''}}}]
Any ideas?nicholas
08/05/2020, 5:12 AMPedro Machado
08/05/2020, 5:31 AMnicholas
08/05/2020, 2:48 PMprefect diagnostics
?Pedro Machado
08/05/2020, 2:52 PM{
"config_overrides": {},
"env_vars": [],
"system_information": {
"platform": "Linux-4.19.121-microsoft-standard-x86_64-with-debian-buster-sid",
"prefect_version": "0.12.6",
"python_version": "3.7.6"
}
}
Keep in mind that the subsequent registration worked fine when I reloaded VS Code so I no longer have the issue, but I could not tell why I was getting the error. I tried to run the same graphql query and got a response back. I can't tell what was happening during the time the registration was failing.nicholas
08/05/2020, 2:53 PM