GiuxJua
07/10/2024, 12:51 PMprefect deployment build path-to-file/prefect_flows.py:simple_test --name simple_test_flow -sb github/my-cicd -t some_tags --apply
and I have an existing block on prefect cloud that can be easily accessed as follows
from prefect_github.repository import GitHubRepository
github_repository_block = GitHubRepository.load("my-cicd")
Why am i getting the following error: ValueError: Unable to find block document named my-cicd for block type github
?
Currently using the Prefect version: 2.19.7 - thanksMarvin
07/10/2024, 12:51 PMpython
from prefect_github.repository import GitHubRepository
github_repository_block = GitHubRepository.load("my-cicd")
Check if this code snippet can actually retrieve the block without any deployment involved.
4. Check Block Type:
Ensure the block type GitHubRepository
matches exactly with the type you have in your Prefect Cloud.
Since documentation search isn't helping directly, I recommend you revisit these points. If the issue persists, you may need to register the block again or check for appropriate permissions.
For more tailored help, you might want to reach out to the Prefect community or support team directly.
If you have further details or errors, feel free to share them, and I can try another way to assist you.