<@ULVA73B9P> my git pull step is not working: ```...
# ask-marvin
a
@Marvin my git pull step is not working:
Copy code
pull:
  - prefect.deployments.steps.git_clone:
      repository: <https://github.com/account/repo_name.git>
      credentials: "{{ prefect.blocks.github-credentials.github-pat }}"
I get :
Copy code
raise RuntimeError(
RuntimeError: Failed to clone repository '<https://github.com/account/repo_name.git>' with exit code 128.
But not when the repo is public, but the credentials are there so it should work when it's private as well
m
The error you're encountering, "Failed to clone repository with exit code 128," often indicates an issue with authentication or connectivity when accessing a private repository. In the context of Prefect, it's important to ensure that the credentials block is properly configured. Here are a few things to check: 1. Credentials Format: Make sure that your GitHub Personal Access Token (PAT) is correctly formatted and has the necessary permissions to access the private repository. 2. Credentials Block: Verify that the credentials block is correctly set up in Prefect. It should be something like
{{ prefect.blocks.github-credentials.github-pat }}
and should match the block you've configured with your PAT. 3. Repository URL: Double-check the repository URL. It should not include angle brackets (
< >
). Ensure it's correctly specified as
<https://github.com/account/repo_name.git>
. 4. Network Access: Ensure that the network where the Prefect agent or worker is running has access to the internet and can reach GitHub. If these checks don't resolve the issue, consider reviewing any specific configurations or logs that might provide more insights. You might also want to look into the GitHub issue discussing similar problems for additional context. If you need further assistance, providing more details about your setup might help in diagnosing the problem.