Troubleshooting
This guide helps you resolve common issues when working with the OneSource Web3 API.
Authentication Errors
Invalid API token
or Status Code 401
If you receive this error:
-
Check API key format to ensure your key starts with
BP-
followed by 26 characters (i.e.,BP-12345678912345678912345678
). -
Verify header implementation:
// Correct implementation
headers: {
"Content-Type": "application/json",
"x-bp-token": "BP-12345678912345678912345678" // Note the exact case of "x-bp-token"
} -
Confirm your subscription status by logging in to your OneSource Dashboard to verify your API key is active and hasn't expired.
-
Test your API key with a playground to determine if the issue is with your query or the API itself.
Query Error
Cannot query field X on type Y
This error occurs when your query references fields that don't exist in our schema. To resolve:
- Check field spelling to ensure field names match exactly what's in our schema.
- Review schema changes in the GraphQL Schema.
- Use Apollo Sandbox to help build valid queries.
Rate Limiting
Rate limit exceeded
If you hit rate limits:
- Implement caching - if you’re making the same requests over and over, caching the results can cut down on requests.
- Optimize queries - only ask for the data you actually need with smaller, focused queries.
- Upgrade your plan - if you consistently hit limits, you may need to move to a higher-tier plan that offers higher limits.
Still Need Help?
If none of the above helps, contact support at support@onesource.io with:
- The full request you're making.
- Any error messages you're receiving.