https://prefect.io logo
Title
k

kasteph

03/06/2023, 7:56 PM
Over the weekend I tried the Cloud Storage example locally and it worked fine. Now trying it again (nothing changed), I'm getting the following error:
ValueError: Unable to find block document named my-uniq-bucket for block type gcs-bucket
• Prefect server and agent are running • Deployment has been applied via :
python gcs_example.py
āœ… 1
It does, however, work when I add a Block via the UI. Is there a way to do this programmatically instead of the UI? I thought that it automatically creates a Block when calling
GcsBucket.load
a

Austin Weisgrau

03/06/2023, 8:00 PM
Block.load() loads a block from the cloud. Block.save() saves a block to the cloud
šŸ™Œ 1
k

kasteph

03/06/2023, 8:04 PM
Oh, so that's not provided by the prefect-provided GcsBucket Block out of the box?
šŸ‘ 1