dennis_hume
08/05/2022, 6:36 PMMeltanoLabs 0.0.4 Google Analytics extractor using the client_secrets env variable. I have set the TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS and tried both setting it and not setting it explicitly in the meltano.yml. I can see the env variable set in Docker and it is serialized correctly. I can also get the connector to authenticate using the same information but using the key_file_locationdennis_hume
08/05/2022, 6:40 PMsinger_sdk.exceptions.ConfigValidationError: Config validation failed: '{...}' is not of type 'object', 'null'edgar_ramirez_mondragon
08/05/2022, 6:51 PMmeltano config tap-google-analytics to confirm the client_secrets key is a JSON object and not a string?dennis_hume
08/05/2022, 6:56 PMedgar_ramirez_mondragon
08/05/2022, 6:59 PMmeltano.yml or at least the definition of tap-google-analytics you got in theredennis_hume
08/05/2022, 7:03 PM- name: tap-google-analytics-xxx
namespace: tap-google-analytics
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics.git@v0.0.4>
executable: tap-google-analytics
capabilities:
- state
config:
view_id: 'xxx'
start_date: '2022-01-01'
client_secrets: $TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS
load_schema: google_analytics_xxxedgar_ramirez_mondragon
08/05/2022, 7:07 PM2.3.0 and we’ve shipped a few fixes to JSON object settings since 1.100.0 , so my first suggestion would be trying to update to the latest.
Also, I see you’re using your own custom definition of tap-google-analytics. In the latest Meltano, meltano add extractor tap-google-analytics would get the definition with all the right settings and their kinds.dennis_hume
08/05/2022, 7:09 PMdennis_hume
08/05/2022, 7:29 PMclient_secrets as a stringdennis_hume
08/05/2022, 7:29 PMmeltano config tap-google-analytics...edgar_ramirez_mondragon
08/05/2022, 7:58 PM- name: tap-google-analytics-xxx
namespace: tap-google-analytics
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics.git@v0.0.4>
executable: tap-google-analytics
capabilities:
- state
settings:
- name: client_secrets
kind: object
config:
view_id: 'xxx'
start_date: '2022-01-01'
client_secrets: $TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS
load_schema: google_analytics_xxxdennis_hume
08/05/2022, 8:27 PMdennis_hume
08/05/2022, 8:27 PMedgar_ramirez_mondragon
08/05/2022, 8:31 PMdennis_hume
08/10/2022, 2:22 PMprivate_key correctly since it is inserting escape characters around the newlines. This escape character insertion does not happen when you just paste the private key as a string literal into the meltano.yml config file. Anyway to deal with this?edgar_ramirez_mondragon
08/10/2022, 8:30 PM\n or \\n literal?dennis_hume
08/12/2022, 8:34 PMdennis_hume
08/12/2022, 8:35 PM