<@U04S8PLJWMT> i’m using the search console connec...
# ask-ai
a
@kapa.ai i’m using the search console connector, but I’m getting this: error ‘POST’ request to ‘https://www.googleapis.com/.../searchAnalytics/query’ failed with status code ‘400’ and error message: ‘’BY_PROPERTY’ is not a valid aggregation type in the context of the request.'
k
The error message
'BY_PROPERTY' is not a valid aggregation type in the context of the request
indicates that the aggregation type specified in your request is not supported by the Google Search Console API for the particular query you are making. Based on the available Airbyte documentation, the Google Search Console connector supports specifying aggregation types, but the valid values and their context are not detailed in the provided sources. The error suggests that
'BY_PROPERTY'
is not a valid option for the aggregation type parameter in the API request you are making. To resolve this: - Ensure you are using a supported aggregation type. The Airbyte documentation and the [Google Search Console API documentation](https://developers.google.com/webmaster-tools/search-console-api-original/v3/searchanalytics/query) (linked from the Airbyte docs) should be referenced for valid values. - If you are configuring a custom report or modifying the connector configuration, try removing or changing the aggregation type to a supported value such as
'auto'
. Unfortunately, the knowledge sources do not provide a list of valid aggregation types or further troubleshooting steps for this specific error. If you continue to encounter issues, you may want to review your custom report configuration or consult the official Google Search Console API documentation for valid aggregation type values for your query context. If the problem persists, consider reaching out on the [Airbyte Forum](https://github.com/airbytehq/airbyte/discussions) for more targeted support, as suggested in the troubleshooting section of the documentation[Limitations & Troubleshooting](https://docs.airbyte.com/integrations/sources/google-search-console#limitations--troubleshooting).
a
@kapa.ai I havent done anything custom, I’m just using the default connector as it is
k
A message from kapa.ai
If you are using the default Google Search Console connector in Airbyte and encountering the error: > ‘POST’ request to ‘.../searchAnalytics/query’ failed with status code ‘400’ and error message: ‘BY_PROPERTY’ is not a valid aggregation type in the context of the request. this suggests that the connector is sending an unsupported aggregation type (
BY_PROPERTY
) to the Google Search Console API. Based on the knowledge sources, there is no mention of
BY_PROPERTY
as a valid aggregation type in the Airbyte documentation or configuration references. The documentation does mention an "Always Use Aggregation Type Auto" boolean field, which implies that the supported value is likely
auto
or similar, not
BY_PROPERTY
 [Config fields reference](https://docs.airbyte.com/integrations/sources/google-search-console#reference). Since you haven't customized anything, this could be a bug or misconfiguration in the connector itself. There have been recent issues with the connector where errors were caused by unexpected values or changes in the API or connector code, as seen in other reported issues [GitHub Issue: KeyError on siteEntry](https://github.com/airbytehq/airbyte/issues/58119). What you can do: - Make sure you are using the latest version of the connector, as bugs are often fixed in newer releases. - If the problem persists with the latest version and default settings, it is likely an issue with the connector's default configuration or a recent change in the Google Search Console API. - You may want to report this issue on the [Airbyte GitHub issues page](https://github.com/airbytehq/airbyte/issues) or check if there is already an open issue regarding aggregation types. I'm sorry, but the knowledge sources do not provide a direct fix for this specific error with the default connector settings. If you need immediate assistance, reaching out on the Airbyte forum or GitHub is recommended.