Skip to main content
This page provides guidance on common errors and troubleshooting steps when working with the Chaos oracle API. Learn how to resolve signature verification problems, proof validation issues, gas cost concerns, stale data, and parameter update challenges. Use this resource to quickly diagnose and fix integration issues, ensuring smooth operation of your oracle-powered applications.

Authentication Errors

These errors occur when a request is not properly authenticated. Ensure that your API key or Authorization header is correctly set.
Error codeDescriptionCause
404 Not FoundMissing or invalid authorizationNo Authorization header provided or invalid API token

Client Request Errors

These errors result from issues in how the request was formed or processed. They are typically fixable by adjusting your query or payload.
Error codeDescriptionCause
400 Bad RequestInvalid request parameters- Invalid JSON payload
- Failed signature validation
- Invalid query parameters such as minutes > 10
- Duplicate signatures in consensus validation
- Failed quorum check
404 Not FoundResource not found- Invalid or missing feedIds parameter
- No price data available for requested feeds
- Empty results from data query
500 Internal Server ErrorServer processing error- Failed to parse query parameters
- Database/storage errors
- Price conversion failures
- Missing private key for wallet-signed endpoints
- Internal processing errors
204 No ContentEmpty responseSingle feed endpoint returns this when no data is available

Troubleshooting

When working with oracles, you might encounter these common issues:

Signature Verification Issues

  • Ensure the recovery ID is correct (0 or 1).
  • Verify that the message was hashed correctly, using the correct algorithm before signing.
  • Check that the signature format matches exactly what was signed.
  • Check that the signer’s public key is correctly registered.

Proof Verification Fails

  • Verify that the proof format matches the expected schema.
  • Check that all required fields are included.
  • Ensure the proof hasn’t expired.

High Gas Costs or Gas Limit Issues

  • Optimize proof size and complexity of proofs and transactions.
  • Batch multiple updates or verifications into a single transaction where possible.
  • Use gas-efficient proof schemes and push oracles for high-frequency updates.
  • Consider using more gas-efficient proof schemes.
  • Review and optimize your smart contract’s storage.
  • Batch multiple verifications.

Stale Price Data

  • Check your timestamp validation logic.
  • Confirm your RPC node or validator is fully synced.
  • Investigate potential network delays affecting update propagation.

Parameter Updates Not Taking Effect

  • Ensure the parameter name is spelled exactly as expected.
  • Confirm the update is applied to the correct signature or entity.
  • Check that the update timestamp is recent enough to override existing values.
For additional support, see the Chaos oracle support page or contact support.
I