Common Issues
Solutions to frequently encountered problems with MergeGuide.Authentication Issues
”Invalid API key” Error
Symptoms:-
Verify key format:
-
Check expiration:
-
Regenerate key:
- Go to portal.mergeguide.ai > Settings > API Keys
- Generate new key
- Update environment variable
-
Check for whitespace:
“Insufficient permissions” Error
Symptoms:-
Check key scopes:
-
Generate key with correct scopes:
Installation Issues
npm Permission Errors
Symptoms:-
Use npx instead:
-
Fix npm permissions:
-
Use nvm:
SSL Certificate Errors
Symptoms:-
Corporate proxy with custom CA:
-
Temporary workaround (not recommended):
Check Issues
”No files to check” Error
Symptoms:-
Stage your changes:
-
Check specific files:
-
Check all changes:
False Positives
Symptoms: Policy triggers on code that isn’t actually a violation. Solutions:-
Ignore specific line:
-
Ignore in config:
- Report to support if the pattern needs adjustment.
Check Takes Too Long
Symptoms: Check runs for several minutes or times out. Solutions:-
Check fewer files:
-
Increase timeout:
-
Use offline mode:
-
Exclude large files:
VS Code Extension Issues
Extension Not Loading
Solutions:-
Check extension is enabled:
- Open Extensions panel
- Find MergeGuide
- Ensure it’s enabled for workspace
-
Check output panel:
- View > Output
- Select “MergeGuide” from dropdown
- Look for error messages
-
Reinstall extension:
Diagnostics Not Appearing
Solutions:-
Check file is in scope:
-
Verify authentication:
- Command Palette > “MergeGuide: Sign In”
-
Restart extension:
- Command Palette > “Developer: Reload Window”
SCM Integration Issues
Checks Not Running on GitHub PRs
Solutions:-
Verify app is installed:
- Go to repository Settings > GitHub Apps
- Check MergeGuide is listed
-
Check webhook delivery:
- Settings > Webhooks
- Find MergeGuide webhook
- Check recent deliveries for failures
-
Re-install app:
- Uninstall and reinstall from github.com/apps/mergeguide
Checks Not Running on GitLab / Bitbucket / Azure DevOps
Solutions:-
Verify webhook delivery:
- GitLab: Project Settings > Webhooks > find MergeGuide > view recent deliveries
- Bitbucket: Repository Settings > Webhooks > find MergeGuide > view recent deliveries
- Azure DevOps: Project Settings > Service hooks > find MergeGuide > view history
-
Verify OAuth token hasn’t expired:
- Go to Settings > SCM Connections in the MergeGuide dashboard
- Click Reconnect on the affected SCM
-
Check network access:
- MergeGuide must be able to reach your SCM’s API
- For self-hosted GitLab or Bitbucket Server, confirm network routing and TLS certificates
”No mergeguide.yaml found” Warning
Solutions:-
Create config file:
-
Commit to repository:
Network Issues
Connection Timeouts
Symptoms:-
Check connectivity:
-
Check firewall rules:
- Ensure outbound HTTPS to api.mergeguide.ai is allowed
-
Use offline mode:
Rate Limiting
Symptoms:-
Wait and retry:
-
Reduce request frequency:
- Batch files in single check
- Cache policy results
- Use webhooks instead of polling
- Upgrade plan for higher limits.
Configuration Issues
Config File Not Being Read
Solutions:-
Check file location:
-
Validate YAML syntax:
-
Check file name:
- Must be
.mergeguide.yamlor.mergeguide.yml
- Must be
Policy Not Taking Effect
Solutions:-
Verify policy is enabled:
-
Check file patterns match:
-
Clear cache:
Getting Help
If these solutions don’t resolve your issue:- Check status page: status.mergeguide.ai
- Search documentation: docs.mergeguide.ai
- Contact support: support@mergeguide.ai
- Community forum: community.mergeguide.ai
- MergeGuide CLI version (
mergeguide --version) - Operating system
- Error message and stack trace
- Steps to reproduce