Common Issues & Solutions
Authentication Errors
”Invalid or missing authentication” (401)
Problem: Your API key or JWT token is invalid or missing. Solutions:- Verify your API key is correct and hasn’t been regenerated
- Check that you’re including the
Authorization: Bearer
header - For JWT tokens, ensure they haven’t expired
- Make sure you’re using the correct header format
”Rate limit exceeded” (429)
Problem: You’ve exceeded 100 requests per minute. Solutions:- Implement exponential backoff in your retry logic
- Batch operations where possible
- Consider caching frequently accessed data
- For high-volume use cases, contact support for rate limit increases
MCP Protocol Issues
”Credential not found” error
Problem: The connector requires authentication but no credential exists. Solutions:- First create a credential using the
create_credential_alloy
tool - List existing credentials with
get_credentials_alloy
- Pass the credential ID in your action execution
”Action not found” error
Problem: The action ID doesn’t exist for this connector. Solutions:- Use
get_connector_resources_alloy
to list available actions - Check for typos in the action ID (case-sensitive)
- Verify the connector supports the action you’re trying to use
Server Configuration Issues
Server not accepting requests
Problem: Getting 403 Forbidden errors. Check these restrictions:- User restrictions: Is your user ID allowed?
- Connector restrictions: Is the connector in your allowlist?
- Action restrictions: Is the specific action blocked?
- Public/Private mode: Are you using the correct authentication?
Token URL not working
Problem: Self-sufficient token URL returns 401. Possible causes:- Token has expired (check
tokenExpiresInDays
setting) - Server was deleted
- Token was regenerated
OAuth & Credential Issues
OAuth redirect not working
Problem: OAuth flow fails or redirects to wrong URL. Solution: Include thex-redirect-uri
header:
API Key credentials not working
Problem: Non-OAuth credentials fail to authenticate. Common issues:- Wrong field names: Each connector expects specific field names
- Missing required fields: Some connectors need multiple fields
get_credential_metadata_alloy
to see exact requirements.
Data & Response Issues
”needsRefinement” response
Problem: Getting guidance instead of data. This happens when:- Result set is too large (>50 items)
- Platform API would be overwhelmed
- More specific parameters are needed
Truncated responses
Problem: Response data is cut off. By design: Responses are limited to prevent overwhelming the AI.- Arrays: Maximum 25 items shown
- Strings: Maximum 5KB per field
- Use pagination for more data
Debugging Tips
1. Enable verbose logging
Check response headers and error details for more context.2. Test incrementally
- First test authentication with a simple
tools/list
call - Then try listing connectors
- Finally attempt your actual operation
3. Validate your request format
Getting Help
Check the documentation
Contact support
- Email: support@runalloy.com
- Include: Request ID, error messages, and code samples
Common error codes reference
Code | Meaning | Action Required |
---|---|---|
INVALID_REQUEST | Malformed request | Check JSON syntax |
UNAUTHORIZED | Auth failed | Verify credentials |
FORBIDDEN | Access denied | Check restrictions |
NOT_FOUND | Resource missing | Verify IDs exist |
RATE_LIMITED | Too many requests | Implement backoff |
CREDENTIAL_NOT_FOUND | No auth for connector | Create credential |
CONNECTOR_NOT_FOUND | Invalid connector | Check connector ID |
ACTION_NOT_FOUND | Invalid action | Verify action exists |