oscar_gonzalez
10/12/2021, 8:32 PM@property
def http_headers(self) -> dict:
result = super().http_headers
#api_token = "123ABC"
api_token = self.config.get("api_token")
auth = b64encode(f"{api_token}".encode()).decode()
result["Authorization"] = f"Basic {auth}"
return result
meltano.yml
config:
api_token: 123ABC
#start_date: '2010-01-01T00:00:00Z'
If a remove the commented linke in the client.py, it will connect without an issue.edgar_ramirez_mondragon
10/12/2021, 8:38 PMsettings
section look in meltano.yml
? Custom taps like yours need to declare capabilities and settings like in the example here: https://meltano.com/docs/plugin-management.html#custom-plugins. Also, you can inspect the source of config values in Meltano with meltano config <name-of-your-tap> list
oscar_gonzalez
10/12/2021, 8:39 PMsettings:
# TODO: To configure using Meltano, declare settings and their types here:
- name: start_date
value: '2010-01-01T00:00:00Z'
- name: api_token
value: "ABC123"
oscar_gonzalez
10/12/2021, 8:42 PMbash: meltano: command not found
oscar_gonzalez
10/12/2021, 8:43 PMoscar_gonzalez
10/12/2021, 8:54 PM[2021-10-12 15:54:06,451] [13100|MainThread|root] [INFO] DB connection failed. Will retry after 5s. Attempt 1/3
edgar_ramirez_mondragon
10/12/2021, 9:17 PM.meltano/meltano.db
at the root of your projectedgar_ramirez_mondragon
10/12/2021, 9:18 PM.meltano/
oscar_gonzalez
10/12/2021, 11:34 PM