airbytehq / airbytehq/PyAirbyte

source-google-analytics-data-api authentication - 'Client' was expected even only with service id

Offen
#264 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
344
Forks
77
Ø Merge
1 T. 11 Std.
Gemergte PRs (30 T.)
35

Beschreibung

I have 'auth_type': 'Service' in setting. however it asked for 'Client' which is for oauth.
below is the format of setting:

```js
{
"property_ids": [
"..."
],
"credentials": {
"credentials_json": {
"type": "service_account",
"project_id": "...",
"private_key_id": "...",
"private_key": "...",
"client_email": "...",
"client_id": "...",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/development%40famous-cove-353314.iam.gserviceaccount.com"
},
"auth_type": "Service"
},
"date_ranges_start_date": "2024-01-01"
}
```

and error message:

`
File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 580, in _execute for line in self.executor.execute(args): File "/usr/local/lib/python3.9/site-packages/airbyte/_executor.py", line 413, in execute yield from stream File "/usr/local/lib/python3.9/contextlib.py", line 126, in __exit__ next(self.gen) File "/usr/local/lib/python3.9/site-packages/airbyte/_executor.py", line 142, in _stream_from_subprocess raise exc.AirbyteSubprocessFailedError(airbyte.exceptions.AirbyteSubprocessFailedError: AirbyteSubprocessFailedError: Subprocess failed. Run Args: ['/usr/local/dataflow/.venv-source-google-analytics-data-api/bin/source-google-analytics-data-api', 'discover', '--config', '/tmp/tmpz4ev3eh8.json'] Exit Code: 1The above exception was the direct cause of the following exception:Traceback (most recent call last): File "/usr/local/dataflow/airbyte_connector.py", line 256, in read_data_to_cache(arguments, config, cache) File "/usr/local/dataflow/airbyte_connector.py", line 88, in read_data_to_cache source.select_streams(streams) File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 126, in select_streams available_streams = self.get_available_streams() File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 222, in get_available_streams return [s.name for s in self.discovered_catalog.streams] File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 320, in discovered_catalog self._discovered_catalog = self._discover() File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 183, in _discover for msg in self._execute(["discover", "--config", config_file]): File "/usr/local/lib/python3.9/site-packages/airbyte/sources/base.py", line 593, in _execute raise exc.AirbyteConnectorReadError(airbyte.exceptions.AirbyteConnectorReadError: AirbyteConnectorReadError: Error when reading from the connector.Log output: 'Client' was expected Traceback (most recent call last): File "/usr/local/dataflow/.venv-source-google-analytics-data-api/bin/source-google-analytics-data-api", line 8, in sys.exit(run()) File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/source_google_analytics_data_api/run.py", line 18, in run launch(source, sys.argv[1:]) File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 235, in launch for message in source_entrypoint.run(parsed_args): File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 117, in run yield from map(AirbyteEntrypoint.airbyte_message_to_string, self.discover(source_spec, config)) File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 151, in discover self.validate_connection(source_spec, config) File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 192, in validate_connection check_config_against_spec_or_exit(connector_config, source_spec) File "/usr/local/dataflow/.venv-source-google-analytics-data-api/lib/python3.9/site-packages/airbyte_cdk/sources/utils/schema_helpers.py", line 175, in check_config_against_spec_or_exit raise AirbyteTracedException( airbyte_cdk.utils.traced_exception.AirbyteTracedException: 'Client' was expected Config validation error: 'Client' was expected
`

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.