kevin
11/25/2022, 3:09 PMTAP_HELLOBATON_COMPANY
and TAP_HELLOBATON_API_KEY
in my .env
file for my current baton instance. How would it work for two since ill have a different api key and company?kevin
11/25/2022, 3:12 PMplugins:
extractors:
- name: tap-hellobaton
schema:
project_attachments:
created_by:
type: ["string", "null"]
time_entries:
created_by:
type: ["string", "null"]
user:
type: ["string", "null"]
project_users:
user:
type: ["string", "null"]
namespace: tap_hellobaton
pip_url: git+<https://github.com/dluftspring/tap-hellobaton.git>
executable: tap-hellobaton
capabilities:
- catalog
- state
- discover
settings:
- name: company
kind: string
- name: api_key
kind: password
- name: user_agent
kind: string
config:
company: lane
user_agent: Singer Tap for hellobaton
load_schema: hellobaton
in my meltano.yml
. Doesnt look like there is a parameter to define which api key to use. Thats where i am a bit confused. If i add another extractor , how do i tell it to point to the other api key? Also, how would i define the api key in my env file since its the same connectoredgar_ramirez_mondragon
11/26/2022, 12:02 AM.env
file. Meltano will use the plugin name, which will be different for each instance of the plugin, to generate the expected variable names. You can check those with
meltano config tap-hellobaton list
meltano config tap-hellobaton--inherited list
kevin
11/28/2022, 3:41 PMkevin
11/28/2022, 3:43 PMTAP_HELLOBATON_API_KEY
. How would i define the second api key? ie ``TAP_HELLOBATON_API_KEY_2` ? looks like it needs to follow a conventionedgar_ramirez_mondragon
11/28/2022, 4:19 PMlooks like it needs to follow a conventionYes,
meltano config tap-hellobaton--inherited list
will show you the expected environment variable name. It should be something like TAP_HELLOBATON__INHERITED_API_KEY
kevin
12/12/2022, 4:56 PMPlugin 'tap-hellobaton--inherited' is not known to Meltano
any ideas?edgar_ramirez_mondragon
12/12/2022, 5:06 PMkevin
12/12/2022, 5:07 PMedgar_ramirez_mondragon
12/12/2022, 5:28 PMmeltano add extractor tap-hellobaton--inherited --inherit-from tap-hellobaton
https://docs.meltano.com/reference/command-line-interface#addkevin
12/12/2022, 5:55 PMTAP_HELLOBATON__INHERITED_API_KEY
. So ill add that to my .env, created a file in my dags folder and then run meltano elt tap-hellobaton--inherited target-snowflake --job_id=vts_baton-to-snowflake
?edgar_ramirez_mondragon
12/12/2022, 5:56 PMmeltano elt
or meltano run
kevin
12/12/2022, 6:05 PMsinger_sdk.exceptions.FatalAPIError: 401 Client Error: Unauthorized for path: /activity/
but i assume this is a credentials / api key problem rather then anything with meltano ?kevin
12/12/2022, 6:06 PMversion: 1
send_anonymous_usage_stats: true
project_id: c817018d-de7b-45fb-9fff-260fa84ddaf9
plugins:
extractors:
- name: tap-hellobaton
namespace: tap_hellobaton
pip_url: git+<https://github.com/dluftspring/tap-hellobaton.git>
executable: tap-hellobaton
capabilities:
- catalog
- state
- discover
settings:
- name: company
kind: string
- name: api_key
kind: password
- name: user_agent
kind: string
config:
company: lane
user_agent: Singer Tap for hellobaton
schema:
project_attachments:
created_by:
type: [string, 'null']
time_entries:
created_by:
type: [string, 'null']
user:
type: [string, 'null']
project_users:
user:
type: [string, 'null']
load_schema: hellobaton
- name: tap-hellobaton--inherited
inherit_from: tap-hellobaton
capabilities:
- catalog
- state
- discover
load_schema: vts-hellobaton