Troubleshooting Guide | Github Tools
#Troubleshooting Guide
Resolve common issues and optimize your experience with GitHub tools in the MCP Chat AI Assistant.
#π§ Connection Issues
#GitHub Account Connection Problems
Issue: "Failed to connect to GitHub"
Symptoms:
- Unable to connect GitHub account
- Connection timeout errors
- Authentication failures
Solutions:
- Check your internet connection
- Verify you're logged into GitHub in your browser
- Clear browser cache and cookies
- Try disconnecting and reconnecting
- Check if two-factor authentication is properly configured
Issue: "Invalid GitHub token"
Symptoms:
- Authentication errors after initial connection
- "Unauthorized" messages
- Token expired errors
Solutions:
- Refresh the page and try again
- Disconnect and reconnect your GitHub account
- Check if your GitHub personal access token is still valid
- Verify the token has the required permissions
- Generate a new token if necessary
Issue: "Rate limit exceeded"
Symptoms:
- "API rate limit exceeded" errors
- Requests failing after working fine
- Temporary inability to access GitHub data
Solutions:
- Wait for the rate limit to reset (usually within an hour)
- Check the rate limit status: "What's my current GitHub rate limit?"
- Reduce the frequency of requests
- Use more specific queries to reduce API calls
- Consider upgrading your GitHub plan for higher limits
#π Repository Access Issues
#Repository Not Found
Issue: "Repository not found" or "404 errors"
Troubleshooting Steps:
- Verify the repository name is correct
- Check if you have access to the repository
- Ensure the repository isn't private (if you don't have access)
- Confirm the repository owner/organization name
- Try accessing the repository directly in GitHub
Solutions:
- "Show me my repositories" to see available repos
- "Check my permissions for this repository"
- Ask the repository owner to grant you access
- Verify the repository URL is correct
#Permission Denied
Issue: "Permission denied" or "Insufficient permissions"
Common Causes:
- Repository is private and you don't have access
- Your role doesn't allow the requested operation
- Organization restrictions preventing access
- Repository has special protection rules
Solutions:
- Contact the repository owner or admin
- Request appropriate permissions
- Check organization settings
- Verify your GitHub account status
#π Search and File Operations Issues
#File Not Found
Issue: "File not found" or "Path does not exist"
Troubleshooting:
- Verify the file path is correct
- Check if you're on the right branch
- Ensure the file hasn't been moved or deleted
- Check spelling and case sensitivity
Solutions:
- "List files in the src directory" to explore structure
- "Search for files containing 'filename'"
- "Show me the current branch and recent changes"
- "Find files similar to what I'm looking for"
#Search Returns No Results
Issue: Search queries return empty results
Common Causes:
- Search terms too specific
- Typos in search query
- File content not indexed yet
- Wrong repository selected
Solutions:
- Try broader search terms
- Use semantic search instead of exact text
- Check spelling and try variations
- Search in different directories
- Verify you're in the correct repository
Examples:
- Instead of: "Find getUserData function"
- Try: "Find user data functions" or "Find code that gets user information"
#Slow Search Performance
Issue: Search takes too long or times out
Causes:
- Large repository size
- Complex search queries
- Network connectivity issues
- High server load
Solutions:
- Use more specific search terms
- Limit search to specific directories
- Break complex searches into smaller parts
- Try again during off-peak hours
- Use basic text search instead of semantic search for simple queries
#π Issue Management Problems
#Cannot Create Issues
Issue: "Unable to create issue" or "Issue creation failed"
Troubleshooting:
- Check repository permissions
- Verify you have "Issues" write access
- Ensure the repository has issues enabled
- Check for required fields or templates
Solutions:
- "What permissions do I have in this repository?"
- Contact repository admin for issue creation rights
- Use the web interface to verify issue creation works
- Check if there are required issue templates
#Issues Not Displaying
Issue: Issues list is empty or incomplete
Possible Causes:
- Filters hiding issues
- No issues actually exist
- Permission restrictions
- Repository settings
Solutions:
- Check active filters: "Show me all issues without filters"
- Verify repository has issues: "How many issues exist in total?"
- Check permissions: "What access level do I have?"
- Try different views: "Show me closed issues too"
#Issue Updates Failing
Issue: Cannot update issue labels, assignees, or status
Troubleshooting:
- Verify write permissions to the repository
- Check if issue is locked
- Ensure labels exist in the repository
- Verify assignee has repository access
Solutions:
- "What labels are available in this repository?"
- "Who are the valid assignees for issues?"
- Ask repository admin to check issue settings
#π Pull Request Issues
#Cannot Create Pull Requests
Issue: "Unable to create pull request" or "PR creation failed"
Common Causes:
- No differences between branches
- Target branch doesn't accept PRs
- Insufficient permissions
- Merge conflicts
Solutions:
- Check branch differences: "Compare my-branch with main"
- Verify target branch accepts PRs
- Resolve merge conflicts first
- Ensure you have push access to source branch
Diagnostics:
- "What changes are in my current branch?"
- "Are there any merge conflicts?"
- "What's the status of this branch compared to main?"
#Pull Request Actions Failing
Issue: Cannot merge, review, or update PRs
Troubleshooting:
- Check PR status and requirements
- Verify all required checks pass
- Ensure proper permissions
- Check for merge conflicts
Solutions:
- "What's blocking this PR from merging?"
- "Show me the PR requirements and status"
- "Are all checks passing for this PR?"
- Wait for required reviews or status checks
#πΏ Branch Operation Issues
#Branch Creation Failures
Issue: "Cannot create branch" or "Branch creation failed"
Causes:
- Branch name already exists
- Invalid branch name characters
- Insufficient permissions
- Network connectivity issues
Solutions:
- Choose a different branch name
- Use valid characters (letters, numbers, hyphens)
- Check write permissions to repository
- Try creating from web interface
Examples of valid branch names:
- feature/user-authentication
- fix/login-bug-123
- hotfix/security-patch
#Branch Not Showing Up
Issue: Created branch doesn't appear in branch list
Troubleshooting:
- Check if branch was created on correct remote
- Verify branch name spelling
- Refresh the branch list
- Check if you're looking at the right repository
Solutions:
- "Show me all branches including recent ones"
- "Refresh the repository branch list"
- "What branches exist on the remote?"
#π€ AI Analysis Issues
#Analysis Takes Too Long
Issue: AI analysis times out or takes excessive time
Causes:
- Large codebase size
- Complex analysis requested
- High server load
- Network connectivity
Solutions:
- Request analysis of specific components instead of entire repository
- Break large analysis into smaller parts
- Try again during off-peak hours
- Use more targeted analysis queries
Better Approaches:
- Instead of: "Analyze the entire repository"
- Try: "Analyze the user authentication module"
#Inaccurate Analysis Results
Issue: AI provides incorrect or irrelevant analysis
Causes:
- Insufficient context provided
- Ambiguous request
- Code complexity beyond AI capabilities
- Outdated or incomplete code
Solutions:
- Provide more specific context
- Break down complex requests
- Validate results with domain knowledge
- Ask for clarification on unclear results
Improvement Tips:
- Be specific about what you want to analyze
- Provide context about the technology stack
- Ask follow-up questions for clarification
#Missing Analysis Features
Issue: Certain analysis features not available
Possible Reasons:
- Feature not implemented yet
- Repository type not supported
- Language not supported
- Dependencies not recognized
Solutions:
- Ask about feature availability: "What analysis features are available?"
- Try alternative approaches
- Provide feedback about missing features
- Use manual analysis for unsupported scenarios
#π Performance Issues
#Slow Response Times
Issue: Tools respond slowly to requests
Causes:
- Network connectivity
- Server load
- Large repository size
- Complex operations
Solutions:
- Check internet connection
- Try simpler requests first
- Break complex operations into smaller parts
- Retry during off-peak hours
- Clear browser cache
Optimization Tips:
- Use specific file paths instead of searching entire repository
- Request specific information rather than broad analysis
- Use pagination for large result sets
#Memory or Loading Issues
Issue: Browser becomes slow or unresponsive
Causes:
- Large amount of data being processed
- Memory leaks in browser
- Too many concurrent operations
Solutions:
- Refresh the browser tab
- Close unnecessary browser tabs
- Restart the browser
- Reduce the scope of operations
- Process data in smaller chunks
#π Security and Privacy Issues
#Authentication Errors
Issue: Persistent authentication failures
Troubleshooting:
- Check if GitHub account is properly authenticated
- Verify two-factor authentication is working
- Check for account restrictions
- Ensure correct GitHub account is connected
Solutions:
- Log out and log back into GitHub
- Verify your GitHub account status
- Check organization restrictions
- Contact GitHub support if issues persist
#Permission Escalation Needed
Issue: Need higher permissions for certain operations
Scenarios:
- Want to modify organization repositories
- Need admin access for repository settings
- Require access to private repositories
Solutions:
- Contact repository owner or organization admin
- Request appropriate role assignment
- Join relevant teams or organizations
- Use personal repositories for testing
#π οΈ General Troubleshooting Steps
#Basic Diagnostics
When experiencing issues, try these steps:
-
Refresh and Retry:
- Refresh the page
- Wait a moment and try again
- Clear browser cache
-
Check Status:
- "What's my GitHub connection status?"
- "Show me my current repository"
- "What are my current permissions?"
-
Verify Settings:
- Check GitHub account connection
- Verify repository selection
- Confirm you have necessary permissions
-
Simplify Request:
- Use simpler, more specific requests
- Break complex operations into smaller parts
- Try alternative approaches
#Advanced Diagnostics
For persistent issues:
-
Check System Status:
- GitHub API status
- Network connectivity
- Browser console for errors
-
Gather Information:
- Note exact error messages
- Document steps to reproduce
- Check timing of issues
-
Alternative Approaches:
- Try using GitHub web interface
- Use different repository for testing
- Test with simpler operations
#π Error Message Reference
#Common Error Messages and Solutions
"Repository not found (404)"
- Solution: Check repository name and access permissions
"Bad credentials (401)"
- Solution: Reconnect GitHub account, check token validity
"API rate limit exceeded (403)"
- Solution: Wait for rate limit reset, reduce request frequency
"Validation failed (422)"
- Solution: Check request parameters, ensure required fields are provided
"Not Found (404)"
- Solution: Verify resource exists and you have access
"Forbidden (403)"
- Solution: Check permissions, contact repository admin
"Internal Server Error (500)"
- Solution: Try again later, contact support if persistent
#π Getting Help
#When to Seek Help
Contact support when:
- Issues persist after troubleshooting
- Error messages are unclear
- Features aren't working as documented
- Security concerns arise
#Information to Provide
When reporting issues, include:
- Exact error messages
- Steps to reproduce the problem
- Repository name (if relevant)
- Browser and operating system
- Time when issue occurred
- Screenshots if helpful
#Self-Help Resources
Before contacting support:
- Check this troubleshooting guide
- Review the best practices guide
- Try the suggestions in the error messages
- Search for similar issues in documentation
- Test with a different repository or simpler operation
#β Prevention Tips
#Avoid Common Issues
- Regular Maintenance: Keep connections active, clear cache periodically
- Permission Awareness: Know your access levels in different repositories
- Rate Limit Management: Space out requests, use specific queries
- Clear Communication: Use specific, well-formed requests
- Stay Updated: Keep browsers and tools updated
#Best Practices for Reliability
- Test with Simple Operations: Start with basic requests to verify connectivity
- Use Specific Queries: Avoid broad, resource-intensive operations
- Monitor Performance: Watch for slow responses and adjust accordingly
- Backup Important Work: Don't rely solely on AI tools for critical operations
- Stay Informed: Keep track of GitHub API changes and tool updates
Still experiencing issues? Don't hesitate to ask the AI assistant directly for help with your specific problem!