Cynot
05/15/2023, 6:19 PMprefect deployment build ./myflow.py:my_flow -n docker-testing -sb github/test-repo -ib docker-container/testing
I get the error `RuntimeError: Unable to load 'testing' of block type None due to failed validation. To load without validation, try loading again with validate=False
.` I created the docker container block in the UI and I'm not sure what kind of "validation" I'm missing (or why it says of block type None
). Any advice on how to get past this? EDIT: I am using Prefect Cloud btwTaylor Curran
05/15/2023, 6:37 PMCynot
05/15/2023, 6:41 PMprefect deployment build
command. The container hasn't changed since I made the block, and I'm not sure where I would specify "validate=False" in this scenario.Taylor Curran
05/15/2023, 6:42 PMCynot
05/15/2023, 6:42 PMTaylor Curran
05/15/2023, 6:43 PMprefect version
?Cynot
05/15/2023, 6:43 PMTaylor Curran
05/15/2023, 6:47 PMCynot
05/15/2023, 7:21 PMTaylor Curran
05/15/2023, 7:43 PMNone
is strange to us.from prefect.infrastructure.docker import DockerContainer
docker_container_block = DockerContainer.load("testing", validate=False)
Cynot
05/15/2023, 7:50 PMpydantic.error_wrappers.ValidationError: 1 validation error for DockerContainer networks
KeyError: 'networks'
Taylor Curran
05/15/2023, 7:53 PMCynot
05/15/2023, 7:53 PMTaylor Curran
05/15/2023, 7:53 PMCynot
05/15/2023, 7:53 PMTaylor Curran
05/15/2023, 7:54 PMprefect version
?Cynot
05/15/2023, 7:55 PMNate
05/15/2023, 8:01 PMprefect block inspect docker-container/testing
Cynot
05/15/2023, 8:06 PMNate
05/15/2023, 8:09 PMCynot
05/15/2023, 8:09 PM