Dennis van der Voorn
05/31/2024, 1:36 PMsevice account credentials
provided are valid.') any thoughts what happened here?kapa.ai
05/31/2024, 1:36 PMtype
, project_id
, private_key_id
, private_key
, etc.
For detailed steps, refer to the [Google service account with JSON key file setup guide](https://docs.airbyte.com/integrations/sources/google-search-console#google-service-account-with-json-key-file-recommended-for-airbyte-open-source).
2. Check Permissions:
Ensure that the service account has the necessary permissions to access the Google Search Console API. The service account should have at least Viewer permissions.
3. Enable Google Search Console API:
Make sure that the Google Search Console API is enabled for your project. You can do this from the [API Console](https://console.cloud.google.com/apis/credentials).
4. Validate JSON Key Format:
Ensure that the JSON key file is correctly formatted and contains no errors. The key should start with:
json
{
"type": "service_account",
"project_id": "YOUR_PROJECT_ID",
"private_key_id": "YOUR_PRIVATE_KEY_ID",
"private_key": "YOUR_PRIVATE_KEY",
...
}
### Common Issues and Solutions
- Invalid Credentials:
If the credentials are invalid, you might see errors like UnauthorizedServiceAccountError
. Double-check the JSON key file and ensure it matches the service account you created.
- Domain Validation Error:
If you encounter errors related to domain validation, such as InvalidSiteURLValidationError
, it might be due to insufficient permissions or incorrect site URLs. Ensure that the site URLs you are trying to access are verified in Google Search Console.
- Version Compatibility:
Sometimes, specific versions of the connector might have issues. If you are using an older version, consider updating to the latest version of the Google Search Console connector.
### Example Error and Solution
From the forum post, a user experienced a similar issue and resolved it by ensuring the credentials were correct:
"I believe the credentials I was inputting were invalid, I have managed to successfully connect now with both old and new versions." ([Forum Post](https://discuss.airbyte.io/t/2882))
kapa.ai
05/31/2024, 1:36 PMtype
, project_id
, private_key_id
, private_key
, etc. For detailed steps, refer to the [Google service account with JSON key file setup guide](https://docs.airbyte.com/integrations/sources/google-search-console#google-service-account-with-json-key-file-recommended-for-airbyte-open-source). 2. Check Permissions: Ensure that the service account has the necessary permissions to access the Google Search Console API. The service account should have at least Viewer permissions. 3. Enable Google Search Console API: Make sure that the Google Search Console API is enabled for your project. You can do this from the [API Console](https://console.cloud.google.com/apis/credentials). 4. Validate JSON Key Format: Ensure that the JSON key file is correctly formatted and contains no errors. The key should start with: json { "type": "service_account", "project_id": "YOUR_PROJECT_ID", "private_key_id": "YOUR_PRIVATE_KEY_ID", "private_key": "YOUR_PRIVATE_KEY", ... }
### Common Issues and Solutions - Invalid Credentials: If the credentials are invalid, you might see errors like UnauthorizedServiceAccountError
. Double-check the JSON key file and ensure it matches the service account you created. - Domain Validation Error: If you encounter errors related to domain validation, such as InvalidSiteURLValidationError
, it might be due to insufficient permissions or incorrect site URLs. Ensure that the site URLs you are trying to access are verified in Google Search Console. - Version Compatibility: Sometimes, specific versions of the connector might have issues. If you are using an older version, consider updating to the latest version of the Google Search Console connector. ### Example Error and Solution From the forum post, a user experienced a similar issue and resolved it by ensuring the credentials were correct: > "I believe the credentials I was inputting were invalid, I have managed to successfully connect now with both old and new versions." ([Forum Post](https://discuss.airbyte.io/t/2882)) If you continue to face issues, you might want to create a GitHub issue for further assistance from the Airbyte team: > "In the meantime I have created a github issue: [Google Search Console - Service Account Key Authentication Failure](http://github.com/airbytehq/airbyte)" ([Forum Post](https://discuss.airbyte.io/t/2882)) By following these steps, you should be able to troubleshoot and resolve the UnauthorizedServiceAccountError
when setting up the Google Search Console connector in Airbyte OSS. If the problem persists, consider reaching out to the Airbyte community or support for further assistance.Dennis van der Voorn
05/31/2024, 2:07 PMkapa.ai
05/31/2024, 2:08 PMSite URLs
(Website URL Properties)) - Google Search Console API enabled for your project (Airbyte Open Source only) If your property is not verified, you should follow [Google's instructions](https://support.google.com/webmasters/answer/7687615?sjid=11103698321670173176-NA) to verify it. Once verified, you can proceed with setting up the connector. For more details, you can refer to the [setup guide](https://docs.airbyte.com/integrations/sources/google-search-console#google-search-console). If you continue to face issues, please ensure that all other prerequisites and configurations are correctly set up. Hope this helps!