<@ULVA73B9P> I am running the following command ``...
# marvin-in-the-wild
g
@Marvin I am running the following command
Copy code
prefect 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
Copy code
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 - thanks
m
It seems there's a hiccup with searching the documentation directly. Let's try a different approach to search for relevant code examples and details associated with this issue in Prefect. It looks like my attempt to get specific examples related to your issue wasn't successful. However, I do have some general troubleshooting suggestions for you. It's likely that the Prefect deployment command isn't recognizing the block you've defined in your script. Follow these steps: 1. Verify Block Existence: Ensure the block named "my-cicd" actually exists in your Prefect Cloud. Double-check for capitalization or space errors. 2. Authentication: Make sure you are authenticated with your Prefect Cloud workspace using the correct API keys. 3. Block Registration: Ensure the block has been registered correctly using:
Copy code
python
   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.