I'm trying to fetch data from the Finances API via...
# replication-troubleshooting
k
I'm trying to fetch data from the Finances API via Airbyte, but I keep getting this error: GET https://sellingpartnerapi-eu.amazon.com/finances/v0/financialEvents?MaxResultsPerPage=100&PostedAfter=2024-08-27T14:24:50Z&PostedBefore=2024-10-26T14:24:49Z Response: Status: 400 Body: {"errors":[{"code":"InvalidInput","message":"Invalid Input","details":""}]} Has anyone faced this with date ranges around 60 days? Could this be a range limit or a connector bug?
k
The error you’re seeing—`400 InvalidInput` from the Finances API when using a date range of about 60 days—could be related to either the API’s input requirements or the way Airbyte formats and sends the date parameters. What the knowledge sources say: - The Airbyte Amazon Seller Partner connector documentation does not specify a strict maximum date range for the Finances API, but it does mention that the "Financial Events Step Size" can be configured (e.g., 1, 7, 14, 30, 60, 90, 180 days) to control the window of data fetched per request. Using a smaller step size is recommended for large data volumes to avoid timeouts and rate limits, but there’s no explicit mention of a hard limit at 60 days for the Finances API specifically. However, using a large window could increase the risk of errors or timeouts, especially if the API or connector has undocumented constraints or if the data volume is high [Performance considerations](https://docs.airbyte.com/integrations/sources/amazon-seller-partner#performance-considerations). - There are several reports of similar 400 errors with the Amazon Seller Partner connector, often related to date formatting or parameter issues. For example, one user resolved a 400 error by removing the End Date parameter, suggesting that the way dates are passed can affect API acceptance [Forum: InvalidInput - ISO 8601](https://discuss.airbyte.io/t/2436). - Schema validation errors and typecast errors have also been reported when date formats do not match the expected ISO 8601 format, or when the connector or destination expects a different format (e.g.,
YYYY-MM-DD
vs.
YYYY-MM-DDTHH:MM:SSZ
) [Github Issue: Schema validation errors](https://github.com/airbytehq/airbyte/issues/39319). What you can try: 1. Reduce the date range: Try using a smaller window (e.g., 30 days or less) to see if the error persists. This is in line with the connector’s configuration options and may help avoid API-side limitations. 2. Check date formatting: Ensure that the dates are in strict ISO 8601 format (
YYYY-MM-DDTHH:MM:SSZ
). Airbyte should handle this, but double-check your configuration. 3. Remove End Date (if possible): Some users have resolved similar errors by omitting the End Date, letting the connector default to today’s date. 4. Connector version: Make sure you are using the latest version of the connector, as there have been fixes related to date handling and schema validation in past releases. Summary: There is no explicit documentation in the knowledge sources about a hard 60-day limit, but using large date ranges can cause issues. Try reducing the range and double-checking your date formats. If the problem persists, it may be a connector bug or an undocumented API constraint. If you continue to encounter this error with smaller date ranges and correct formatting, it could be worth opening an issue on the Airbyte GitHub with your configuration details and logs for further investigation.
k
I am getting this continuously