I’m struggling with the meltano variant of the tap...
# troubleshooting
j
I’m struggling with the meltano variant of the tap-google-analytics. https://hub.meltano.com/extractors/google-analytics indicates that setting the
oauth_credentials
in the config will override the
key_file_location
but when I run
meltano select tap-google-analytics --list --all
I get the following error:
Copy code
Cannot list the selected attributes: Catalog discovery failed: command [.../meltano/.meltano/extractors/tap-google-analytics/venv/bin/tap-google-analytics', '--config', '.../meltano/.meltano/run/tap-google-analytics/tap.config.json', '--discover'] returned 1: CRITICAL tap-google-analytics: '.../meltano/client_secrets.json' file not found
d
@josh_lloyd Can you verify the
oauth_credentials
settings are making it to the tap correctly using
meltano config tap-google-analytics
? That will also mention the
key_file_location
, but that should be ignored by the tap (as the docs suggest)
j
just did it. I do see all the values I placed in the
meltano.yml
file in their respective places
I have not yet set the
access_token
or
refresh_token
. Don’t know if that’s causing the error. That would be odd though since the error really points in a different direction …
d
@josh_lloyd I think that's exactly it, the access_token is required for the tap to go into the OAuth branch: https://gitlab.com/meltano/tap-google-analytics/-/blob/master/tap_google_analytics/ga_client.py#L79
The validation logic prefers key_file_location, though: https://gitlab.com/meltano/tap-google-analytics/-/blob/master/tap_google_analytics/__init__.py#L157, so that's an inconsistency. If that were fixed, you'd see the "`tap-google-analytics: a valid refresh_token for the oauth_credentials must be provided.`" error
Can you please file an issue on the repo about that validation bug?
j
sure