Overview
When integrating with TrackVia APIs, errors generally fall into a few common categories:
- Authentication and authorization
- Validation failures
- Timeout and performance issues
- Rate limiting
- Data integrity conflicts
- Connectivity problems
General API Troubleshooting Checklist
When troubleshooting API failures:
- Verify authentication
- Confirm endpoint URLs
- Validate payload structures
- Review middleware logs
- Check HTTP status codes
- Inspect App Script behavior
- Review recent configuration changes
- Confirm environment-specific credentials
- Test with simplified payloads
- Check for platform incidents or outages
COMMON ERROR CODES
❗401 Unauthorized
What It Means
The API request could not be authenticated.
Common Causes
- Expired Access Token
- Incorrect Access Token
- Invalid UserKey
- Revoked credentials
- Inactive API user
- Incorrect environment credentials
Example Error
HTTP GET failed: unauthorized (401)
🛠️Resolution Steps
- Verify the Access Token is still active
- Confirm the API user is active and enabled
- Validate the UserKey
- Ensure sandbox and production credentials are not mixed
- Regenerate the token if necessary
- Update middleware or integration configurations
🥇Best Practices
- Use dedicated integration/service accounts
- Rotate tokens on a schedule
- Monitor for expiring credentials
❗403 Forbidden
What It Means
Authentication succeeded, but the user does not have permission to perform the requested action.
Common Causes
- Missing table permissions
- Insufficient role access
- Restricted API operations
- Environment access limitations
Resolution Steps
- Review the API user's permissions
- Verify role assignments
- Confirm access to the target table or application
- Validate Role permissions
❗404 Not Found
What It Means
The requested resource does not exist.
Common Causes
- Incorrect endpoint URL
- Invalid table ID
- Invalid application ID
- Deleted resource
- Typographical errors
🛠️Resolution Steps
- Verify endpoint URLs
- Confirm application and table IDs
- Validate API routing configuration
- Ensure the target object still exists
- Confirm the provided id is correct.
👀NOTE: use the id and not a “Record Id”
❗429 Too Many Requests
What It Means
The integration exceeded API rate limits.
Common Causes
- Excessive polling
- Large bursts of requests
- Inefficient synchronization logic
- Recursive integration loops
🛠️Resolution Steps
- Reduce request frequency
- Batch requests where possible
- Add retry backoff logic
- Avoid unnecessary polling
- Cache frequently requested data
🥇Best Practices
- Use event-driven integrations when possible
- Avoid continuous polling loops
- Monitor integration throughput
❗500 Internal Server Error
What It Means
The server encountered an unexpected condition while processing the request.
Common Causes
- App Script runtime exceptions
- Invalid payload structures
- Unexpected null values
- Backend processing failures
- Temporary platform instability
🛠️Resolution Steps
- Review App Script configuration
- Validate payload data
- Check for null or invalid field values
- Retry the request if appropriate
- Contact support if the issue persists
.
Comments
0 comments
Please sign in to leave a comment.