Marwan Sarieddine
10/13/2021, 11:29 PMMarwan Sarieddine
10/13/2021, 11:30 PMkv_store.set_key_value("filenames", filenames) # filenames is a list of strings
And I get the following error
prefect.utilities.exceptions.ClientError: [{'path': ['set_key_value'], 'message': '[{\'extensions\': {\'path\': \'$.selectionSet.key_value_aggregate\', \'code\': \'validation-failed\'}, \'message\': \'field "key_value_aggregate" not found in type: \\\'query_root\\\'\'}]', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
Marwan Sarieddine
10/13/2021, 11:35 PMMarwan Sarieddine
10/13/2021, 11:36 PMMarwan Sarieddine
10/13/2021, 11:41 PMMarwan Sarieddine
10/13/2021, 11:43 PMMarwan Sarieddine
10/13/2021, 11:54 PM...
_request(self, method, path, params, server, headers, token, retry_on_api_error)
466 except JSONDecodeError as exc:
467 if prefect.config.backend == "cloud" and "Authorization" not in headers:
--> 468 raise ClientError(
469 "Malformed response received from Cloud - please ensure that you "
470 "have an API token properly configured."
ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured.
Marwan Sarieddine
10/13/2021, 11:56 PMMarwan Sarieddine
10/13/2021, 11:57 PMas_user=False
flagMarwan Sarieddine
10/13/2021, 11:59 PMMarwan Sarieddine
10/14/2021, 12:08 AMMarwan Sarieddine
10/14/2021, 2:16 AMseems like one workaround is to login with a user-scoped token on the dask worker - but that doesn’t sound ideal (edited)this workaround works - but no where in the docs does it state that one requires a user-scoped token to interact with the KV store … Additionally for flows executed remotely on dask workers - one has to pass the user-scoped api key to Client() and make use of graphql to make this work …
Kevin Kho