
Common Errors and How to Fix Them
Introduction
Every tool has its error messages. DevLoop Runner is no exception.
When you first set up, change a configuration, or connect a new repository, things can go wrong. The good news is that most errors follow predictable patterns, and once you know the cause, fixing them is quick.
This article catalogs the most common errors you'll encounter while using DevLoop Runner, explains why they happen, and walks through the steps to resolve each one. Bookmark this page as a troubleshooting reference.
Authentication Errors
Authentication errors are the most frequent category. They occur when the credentials DevLoop Runner needs to communicate with GitHub or AI services are misconfigured.
Incorrect API Key
Symptoms:
- "Invalid API key" or "Authentication failed" error message
- Dev Run fails immediately upon starting
Cause:
- API key is not configured correctly
- Typo in the API key
- Wrong environment variable name
How to fix:
- Check that the API key is correctly entered in the settings
- Look for leading or trailing whitespace in the key
- Re-enter the key using copy-paste
- Verify the key is active in your API provider's dashboard
Expired API Key
Symptoms:
- Authentication worked before but suddenly started failing
- "API key expired" or "Token expired" message
Cause:
- The API key's validity period has lapsed
- The key was revoked by the service provider
How to fix:
- Log in to your API provider's dashboard
- Check the key's expiration date
- If expired, generate a new key
- Update the key in DevLoop Runner's settings
Insufficient GitHub Token Permissions
Symptoms:
- Repository list doesn't load
- "Resource not accessible by integration" error
Cause:
- The GitHub access token lacks required scopes
How to fix:
- Go to GitHub Settings → Developer settings → Personal access tokens
- Find the token used by DevLoop Runner
- Confirm these scopes are granted:
repo(full repository access)workflow(GitHub Actions execution, if needed)
- If scopes are missing, regenerate the token with correct permissions
Repository Connection Errors
Errors related to connecting with repositories.
Private Repository Access
Symptoms:
- Public repositories appear but private ones don't
- "Repository not found" error
Cause:
- Access token lacks private repository permissions
- Organization repositories may require SSO authorization
How to fix:
- Confirm the access token includes the
reposcope - For Organization repositories:
- Go to GitHub Settings → Personal access tokens and select the token
- Use "Configure SSO" to authorize the Organization
- If using a GitHub App integration, ask the Organization admin to approve the installation
Branch Protection Rules
Symptoms:
- PR creation or push fails with "Permission denied"
- Errors referencing "Branch protection rule"
Cause:
- Branch protection rules are configured on the default branch (main/master)
- Direct pushes are blocked
How to fix:
DevLoop Runner works by creating branches and opening PRs, which is generally compatible with branch protection. If errors persist:
- Check the repository settings → Branches → Branch protection rules
- Verify that DevLoop Runner's bot account is listed as an allowed actor
- If needed, add the bot account to "Restrict who can push to matching branches"
Dev Run Execution Errors
Errors that occur during Dev Run processing.
Insufficient Issue Content
Symptoms:
- Dev Run stalls at the planning phase
- The generated plan is too vague to proceed to implementation
Cause:
- Issue description lacks enough detail for AI to determine an implementation approach
- Requirements are ambiguous, preventing test scenario design
How to fix:
- Review the Issue description. Confirm it includes:
- What to implement (specific feature description)
- How to implement it (technical approach)
- Acceptance criteria (what defines "done")
- Rewrite the Issue following effective Issue writing practices
- Re-run the Dev Run
Phase Failure
Symptoms:
- A specific phase (design, implementation, testing, etc.) errors out
- "Phase failed" message appears
Cause:
- AI couldn't interpret the codebase's unique structure
- Dependency issues prevent a successful build
- Test framework configuration problems
How to fix:
- Read the error message to identify the failure cause
- Use the rollback feature to return to the failed phase
- Add more context to the Issue (file paths, libraries used, constraints)
- Alternatively, use phase skip to bypass the problematic phase and handle it manually later
- Re-run the Dev Run
Run Stalled or Hanging
Symptoms:
- Dev Run stops making progress
- A phase shows "processing" for an extended period
Cause:
- Issue scope is too large
- AI is working through complex logic generation
- Network connectivity issues
How to fix:
- If no progress after waiting, cancel the job
- Split the Issue into smaller, more focused Issues
- Try changing the execution mode to "implementation only" to skip the planning phase
- Check your network connection
Handling Test Failures
When tests generated by Dev Run don't pass.
Generated Tests Conflict with Existing Code
Symptoms:
- Newly generated tests fail
- Existing tests pass, but new ones don't
Cause:
- AI didn't fully understand the existing codebase's behavior
- Test expectations don't match actual behavior
How to fix:
- Examine the failing test content
- Determine whether the test expectation is wrong or the implementation is wrong
- If the test is wrong: request a fix via PR review comment
- If the implementation is wrong: roll back and re-run
Existing Tests Break
Symptoms:
- Existing tests fail after a Dev Run
- CI reports failures in the pre-existing test suite
Cause:
- AI's changes affected existing functionality
- API changes invalidated existing test assumptions
How to fix:
- Identify which tests are failing
- Determine whether the failure is from an intentional change or a bug
- Intentional change: request test updates via review comment
- Bug: revise the PR, or don't merge and re-run with an improved Issue description
Environment Differences
Symptoms:
- Tests pass during Dev Run but fail in CI
- Tests pass locally but not in CI
Cause:
- Node.js version differences
- Environment variable discrepancies
- OS or filesystem differences (e.g., path separators)
How to fix:
- Check CI logs for specific error messages
- Compare CI and Dev Run environments (Node.js version, OS, etc.)
- Adjust CI configuration as needed
- For environment-dependent tests, use conditional logic or mocks
Finalize Errors
Errors when converting a Draft PR to a public PR.
Merge Conflicts
Symptoms:
- "Merge conflict" error during Finalize
- PR shows "This branch has conflicts"
Cause:
- Other changes were merged to the base branch (main) after the Draft PR was created, causing conflicts
How to fix:
- Review the conflict details
- For minor conflicts: resolve using GitHub's web UI or manually
- For major conflicts: re-run the Issue through Dev Run against the latest main branch
CI Checks Not Passing
Symptoms:
- Finalize succeeds but merge is blocked
- "Required status checks have not passed" message
Cause:
- Branch protection requires CI checks to pass before merging
- CI checks failed or weren't triggered
How to fix:
- Check the PR's Checks tab for CI status
- If checks failed, review the logs and address the issues
- If checks weren't triggered, push a new commit to the branch to re-trigger CI
Rate Limiting
Errors from hitting API rate limits.
AI API Rate Limits
Symptoms:
- "Rate limit exceeded" error
- Errors during parallel Dev Run execution
Cause:
- API call count reached the plan's limit
- Too many requests sent in a short period
How to fix:
- Wait and retry (limits typically reset within minutes to an hour)
- Reduce the number of parallel Dev Runs
- Consider upgrading your API plan if limits are consistently hit
GitHub API Rate Limits
Symptoms:
- GitHub operations (PR creation, comment posting) fail
- "API rate limit exceeded" error
Cause:
- Hit GitHub's API rate limit (5,000 requests per hour for authenticated users)
How to fix:
- Wait and retry
- Reduce parallel processing concurrency
- If using a GitHub App, check the per-installation rate limit
Troubleshooting Flowchart
A general approach when you encounter any error.
Loading diagram...
Summary
- Authentication errors are usually resolved by verifying and re-issuing API keys
- Repository connection errors require checking token permissions and repository settings
- Dev Run execution errors call for richer Issue descriptions or smaller scope
- Test failures need root cause analysis from both the test and implementation sides
- Finalize errors are addressed by resolving conflicts or regenerating the PR
- Rate limits are handled by waiting or reducing parallel execution count
- Always read the error message carefully and identify the cause before attempting a fix
Errors are part of development. The key is staying calm, identifying the root cause, and applying the right fix. Use this article as a reference to minimize your troubleshooting time and get back to building.
Get Started with DevLoop Runner
Auto-generate PRs from GitHub Issues. Let AI accelerate your development.