Open uuazed opened 1 year ago
recreating the credentials block solved the issue :shrug:
An older version of the GcpCredentials
block saved the service_account_json
fields as JSON string instead of an object, which is the root cause of this error. Recreating the GcpCredentials
block will use the new version and save the service_account_json
field in with the correct type. To guard against service_account_json
values that are saved as JSON strings, we should attempt to parse the service_account_json
field value if it is a string.
I've created a new project using the docker-gcs template. The credentials of my GCP service account are stored in a prefect block. According to the prefect project tutorial, this is the recommended setup. This is the push section in my deployment.yaml :
push:
When initiating a deploy via prefect deploy --name ... , the step fails with
AttributeError: 'str' object has no attribute 'keys'
Expectation / Proposal
Using credentials stored in a prefect blocks works. Even better, I can use a prefect gcs block directly.
Traceback / Example