Over the weekend I tried the <Cloud Storage exampl...
# ask-community
k
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:
Copy code
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
Block.load() loads a block from the cloud. Block.save() saves a block to the cloud
šŸ™Œ 1
k
Oh, so that's not provided by the prefect-provided GcsBucket Block out of the box?
šŸ‘ 1