Hi, I am trying to set up tap-ga4 for extracting d...
# troubleshooting
s
Hi, I am trying to set up tap-ga4 for extracting data from google analytics (ga4). I am using this extractor https://hub.meltano.com/extractors/tap-ga4/, and trying to authenticate via service account. I've set following properties: key_file_location, property_id and start_date - minimum required as per github repo readme. But while testing the tap, I am getting below error. Any idea what I am doing wrong?
Copy code
Plugin configuration is invalid
Catalog discovery failed: command ['/home/ubuntu/meltano/ga4/.meltano/extractors/tap-ga4/venv/bin/tap-google-analytics', '--config', '/home/ubuntu/meltano/ga4/.meltano/run/tap-ga4/tap.9a24e57e-49c2-4ee1-a333-8030c1534633.config.json', '--discover'] returned 1 with stderr:
 Traceback (most recent call last):
 File "/home/ubuntu/meltano/ga4/.meltano/extractors/tap-ga4/venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
  return callable_(*args, **kwargs)
 File "/home/ubuntu/meltano/ga4/.meltano/extractors/tap-ga4/venv/lib/python3.10/site-packages/grpc/_channel.py", line 1161, in __call__
  return _end_unary_response_blocking(state, call, False, None)
 File "/home/ubuntu/meltano/ga4/.meltano/extractors/tap-ga4/venv/lib/python3.10/site-packages/grpc/_channel.py", line 1004, in _end_unary_response_blocking
  raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAUTHENTICATED
	details = "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See <https://developers.google.com/identity/sign-in/web/devconsole-project>."
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See <https://developers.google.com/identity/sign-in/web/devconsole-project>.", grpc_status:16, created_time:"2023-08-11T12:15:24.165410149+00:00"}"
u
Can you try running
meltano config tap-ga4
https://docs.meltano.com/reference/command-line-interface/#config and confirm that the config json that it prints it what youre expecting?