Getatlas Z3tquwaqra
Help CenterTechnical SupportTroubleshooting Common Errors

Troubleshooting Common Errors

Last updated August 29, 2024

While Polygon.io's API is designed for ease of use, you might encounter errors during your integration process. This guide will help you troubleshoot common issues and get back on track.

Common Error Scenarios and Solutions

  • Invalid API Key:
  • Problem: You're using an incorrect or expired API key.
  • Solution: Double-check that you're using the correct API key from your account dashboard. Ensure it's valid and not expired.
  • API Rate Limit Exceeded:
  • Problem: You're making too many API calls within a short period of time.
  • Solution:
  • Review your data plan's rate limits.
  • Implement error handling to retry requests after a delay if you encounter an error.
  • Optimize your API calls to reduce the frequency and volume of requests.
  • Incorrect Endpoint:
  • Problem: You're using the wrong API endpoint for your request.
  • Solution: Carefully review the Polygon.io API documentation to confirm that you're using the correct endpoint for the desired data.
  • Missing or Invalid Parameters:
  • Problem: Your API request is missing required parameters or using incorrect values.
  • Solution: Refer to the documentation for the specific endpoint you're using. Check the required parameters and their data types.
  • Server Errors (500, 502, 503, etc.):
  • Problem: The Polygon.io API server is experiencing issues.
  • Solution: Check the Polygon.io status page for any reported outages. Try again later, as the issue might be temporary.
  • Data Not Available:
  • Problem: The specific data you're requesting is not available for that asset or time period.
  • Solution: Verify that the asset and time range you're using are valid. Ensure your data plan allows access to the requested data.
  • Incorrect Data Format:
  • Problem: You're expecting the data in a particular format (e.g., JSON or CSV), but the API is returning a different format.
  • Solution: Check the Polygon.io documentation to confirm the expected data format for the specific endpoint.
  • Connection Problems:
  • Problem: You might be experiencing network connectivity issues.
  • Solution: Check your internet connection. Ensure your firewall or antivirus software isn't blocking API calls.

Debugging Tips

  • Use Developer Tools: Use your browser's developer tools to inspect the API response and examine the error messages.
  • Read Error Messages: Error messages provide valuable clues about the source of the problem.
  • Experiment with Smaller Requests: Simplify your requests to isolate the cause of the issue.

By following these troubleshooting steps and continually referring to the Polygon.io API documentation, you'll be able to resolve most common errors and effectively access the data you need.

Was this article helpful?