nick_hamlin
09/14/2021, 4:44 PM.env
, and the same version of meltano (1.80.1). She’s able to run jobs from other taps fine as well. Importantly, the job is not erroring out either - it’s “completing successfully”, but it’s not loading any data, nor is there any state information getting written back to the job table in the meltano db (which on both our local machines is sqlite, but postgres in prod). Any thoughts on where we might look next?douwe_maan
09/14/2021, 4:50 PMmeltano --log-level=debug elt ...
so that we get additional debug output, see if any state file is being picked up, and if any messages are making it out of the tap
• Verify that the database_uri
points at .meltano/meltano.db
in meltano config meltano
douwe_maan
09/14/2021, 4:50 PMmeltano.yml
definition for tap-typeform
so I can verify it’s correct?nick_hamlin
09/14/2021, 4:51 PMmeltano.yml
, since we both have the same one and it’s running fine on my endnick_hamlin
09/14/2021, 4:52 PMnick_hamlin
09/14/2021, 4:54 PMdatabase_uri
nick_hamlin
09/14/2021, 4:55 PM- name: tap-typeform
namespace: tap_typeform
pip_url: tap-typeform
executable: tap-typeform
capabilities:
- discover
- catalog
- state
config:
token: $TYPEFORM_API_KEY
# NOTE: Unless a new use case comes to light and this comment is removed, all typeform
# ingest should happen via manual/local meltano commands instead of automatic
# jobs run out of airflow. See the Dataverse Superuser Guide for more details.
# Only try to load one form at a time!
forms: "REDACTED"
# Figure out the earliest response for your form and set the start date accordingly
start_date: "2021-03-12T00:00:00Z"
incremental_range: "daily"
select:
- answers.answer
- answers.data_type
- answers.landing_id
- answers.question_id
- answers.ref
- answers.type
- landings.browser
- landings.hidden
- landings.landed_at
- landings.landing_id
- landings.network_id
- landings.platform
- landings.referer
- landings.submitted_at
- landings.token
- landings.user_agent
- questions.form_id
- questions.question_id
- questions.ref
- questions.title
nick_hamlin
09/14/2021, 4:58 PMtap.properties.json
tap.properties.cache_key
or state.json
in meltano/.meltano/extractors/tap-typeform
nick_hamlin
09/14/2021, 4:59 PMdouwe_maan
09/14/2021, 4:59 PMstate.json
is expected if there’s no state yet in the empty DB. tap.properties.json
should definitely be there since it should be generated by tap --discover
that runs as part of meltano elt
douwe_maan
09/14/2021, 4:59 PMtap.properties.json
be found?douwe_maan
09/14/2021, 5:00 PMjob
table though, so it’s odd that that’s missingstephen_bailey
09/14/2021, 6:49 PMnick_hamlin
09/14/2021, 7:56 PMnick_hamlin
09/14/2021, 7:57 PMtap.properties.json
and tap.properties.cache.key
on my machine, as expectednick_hamlin
09/14/2021, 7:58 PMjob
table, as expected, but that record does not contain a value in the payload
or payload_flags
columnnick_hamlin
09/14/2021, 7:59 PMdouwe_maan
09/14/2021, 8:00 PM<tap> --discover
is run as part of meltano elt
? Sharing the entire output in a snippet may be easiestnick_hamlin
09/14/2021, 8:00 PMnick_hamlin
09/14/2021, 8:02 PMmeltano | DEBUG Invoking: ['/Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/venv/bin/tap-typeform', '--config', '/Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/8cabfb65-f249-47ac-8ef3-53a94be8722f/tap.693a2128-10e7-47c9-b04d-2a6209a8087f.config.json', '--discover']
douwe_maan
09/14/2021, 8:04 PMtap.properties.json
file being created. Can she run meltano invoke tap-typeform --discover
and see if that raises any errors, or generates a valid catalog file?nick_hamlin
09/14/2021, 8:05 PMnick_hamlin
09/15/2021, 1:39 PMgg-C02CV0FWMD6R:meltano cassiehudson$ meltano invoke tap-typeform --discover
{"streams": [{"tap_stream_id": "landings", "key_properties": ["landing_id"], "schema": {"properties": {"landing_id": {"selected": true, "type": ["null", "string"]}, "token": {"selected": true, "type": ["null", "string"]}, "landed_at": {"selected": true, "format": "date-time", "type": ["null", "string"]}, "submitted_at": {"selected": true, "format": "date-time", "type": ["null", "string"]}, "user_agent": {"selected": true, "type": ["null", "string"]}, "platform": {"selected": true, "type": ["null", "string"]}, "referer": {"selected": true, "type": ["null", "string"]}, "network_id": {"selected": true, "type": ["null", "string"]}, "browser": {"selected": true, "type": ["null", "string"]}, "hidden": {"selected": true, "type": ["null", "string"]}}, "selected": true, "type": ["null", "object"], "additionalProperties": false}, "stream": "landings", "metadata": [{"metadata": {"inclusion": "automatic"}, "breadcrumb": ["properties", "landing_id"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "token"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "landed_at"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "submitted_at"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "user_agent"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "platform"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "referer"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "network_id"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "browser"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "hidden"]}]}, {"tap_stream_id": "answers", "key_properties": ["landing_id", "question_id"], "schema": {"properties": {"landing_id": {"selected": true, "type": ["null", "string"]}, "question_id": {"selected": true, "type": ["null", "string"]}, "type": {"selected": true, "type": ["null", "string"]}, "ref": {"selected": true, "type": ["null", "string"]}, "data_type": {"selected": true, "type": ["null", "string"]}, "answer": {"selected": true, "type": ["null", "string"]}}, "selected": true, "type": ["null", "object"], "additionalProperties": false}, "stream": "answers", "metadata": [{"metadata": {"inclusion": "automatic"}, "breadcrumb": ["properties", "landing_id"]}, {"metadata": {"inclusion": "automatic"}, "breadcrumb": ["properties", "question_id"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "type"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "ref"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "data_type"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "answer"]}]}, {"tap_stream_id": "questions", "key_properties": ["form_id", "question_id"], "schema": {"properties": {"form_id": {"selected": true, "type": ["null", "string"]}, "question_id": {"selected": true, "type": ["null", "string"]}, "title": {"selected": true, "type": ["null", "string"]}, "ref": {"selected": true, "type": ["null", "string"]}}, "selected": true, "type": ["null", "object"], "additionalProperties": false}, "stream": "questions", "metadata": [{"metadata": {"inclusion": "automatic"}, "breadcrumb": ["properties", "form_id"]}, {"metadata": {"inclusion": "automatic"}, "breadcrumb": ["properties", "question_id"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "title"]}, {"metadata": {"inclusion": "available"}, "breadcrumb": ["properties", "ref"]}]}]}
douwe_maan
09/15/2021, 1:42 PMnick_hamlin
09/15/2021, 1:48 PM```[2021-09-15 08:42:12,085] [5802|MainThread|root] [DEBUG] Creating engine <meltano.core.project.Project object at 0x112cadb38>@sqlite:////Users/cassiehudson/git/meltano/.meltano/meltano.db
[2021-09-15 08:42:12,114] [5802|MainThread|asyncio] [DEBUG] Using selector: KqueueSelector
meltano | DEBUG Variable '$MELTANO_LOAD_SCHEMA' is missing from the environment.
meltano | INFO Running extract & load...
meltano | DEBUG Created configuration at /Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/tap.50e36044-c631-4a52-9dca-72d5d27ee93d.config.json
meltano | DEBUG Could not find tap.properties.json in /Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/tap.properties.json, skipping.
meltano | DEBUG Could not find tap.properties.cache_key in /Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/tap.properties.cache_key, skipping.
meltano | DEBUG Could not find state.json in /Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/state.json, skipping.
meltano | DEBUG Variable '$MELTANO_LOAD_SCHEMA' is missing from the environment.
meltano | DEBUG Variable '$MELTANO_LOAD_SCHEMA' is missing from the environment.
meltano | DEBUG Created configuration at /Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/target.536a3012-206e-496f-b09e-3aed176ccefa.config.json
meltano | INFO Performing full refresh, ignoring state left behind by any previous runs.
meltano | DEBUG Invoking: ['/Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/venv/bin/tap-typeform', '--config', '/Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/tap.50e36044-c631-4a52-9dca-72d5d27ee93d.config.json', '--discover']
nick_hamlin
09/15/2021, 1:48 PMnick_hamlin
09/15/2021, 1:49 PMnick_hamlin
09/15/2021, 1:49 PMmeltano | DEBUG Visiting CatalogNode.STREAM at '.streams[0]'.
meltano | DEBUG Setting '.streams[0].selected' to 'False'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Setting '.streams[0].selected' to 'True'
meltano | DEBUG Skipping node at '.streams[0].tap_stream_id'
meltano | DEBUG Skipping node at '.streams[0].key_properties[0]'
meltano | DEBUG Visiting CatalogNode.PROPERTY at '.streams[0].schema.properties.landing_id'.
meltano | DEBUG Skipping node at '.streams[0].schema.properties.landing_id.selected'
meltano | DEBUG Visiting CatalogNode.PROPERTY at '.streams[0].schema.properties.token'.
meltano | DEBUG Skipping node at '.streams[0].schema.properties.token.selected'
douwe_maan
09/15/2021, 1:52 PMMELTANO_LOAD_SCHEMA
warning is not an issue. Those DEBUG Visiting
lines indicate that Meltano is seeing the discovered catalog file and applying your selection rules, which is a good sign. But then it sounds like the catalog file is disappearing before it’s passed to the tap 😕douwe_maan
09/15/2021, 1:53 PMtap.properties.json
is missing?nick_hamlin
09/15/2021, 1:57 PMnick_hamlin
09/15/2021, 2:00 PMmeltano/.meltano/run/tap_typeform
(this is also where they exist on my instance)
EDIT - I now think this is a red herring. Mine does this toonick_hamlin
09/15/2021, 2:00 PM/meltano/.meltano/extractors/tap-typeform/
douwe_maan
09/15/2021, 2:01 PMDEBUG Invoking:
line without --discover
, for the actual sync run?nick_hamlin
09/15/2021, 2:04 PMmeltano | DEBUG Invoking: ['/Users/cassiehudson/git/meltano/.meltano/extractors/tap-typeform/venv/bin/tap-typeform', '--config', '/Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/tap.50e36044-c631-4a52-9dca-72d5d27ee93d.config.json', '--catalog', '/Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/tap.properties.json']
douwe_maan
09/15/2021, 2:07 PM/Users/cassiehudson/git/meltano/.meltano/run/elt/typeform_to_redshift/683befa1-e9b7-423b-9234-dc9b43f90dfe/tap.properties.json
actually exists? Does it look the same on her machine as it does on yours?douwe_maan
09/15/2021, 2:07 PMdouwe_maan
09/15/2021, 2:08 PMnick_hamlin
09/15/2021, 2:11 PMnick_hamlin
09/15/2021, 2:13 PMdouwe_maan
09/15/2021, 2:18 PMtap-typeform (out)
prefix and a RECORD
message type, but on hers you aren’t?nick_hamlin
09/15/2021, 2:20 PMdouwe_maan
09/15/2021, 2:21 PMnick_hamlin
09/15/2021, 2:24 PMnick_hamlin
09/15/2021, 3:07 PMnick_hamlin
09/15/2021, 3:08 PMnick_hamlin
09/15/2021, 3:09 PMpip_url
in meltano.yml and then do a meltano install extractor tap-typeform --clean
, presumably that should allow me to jump between versions as needed. Do I have that correct?stephen_bailey
09/15/2021, 3:09 PMpip_url
to a specific version: https://meltano.com/docs/plugin-management.html#pinning-a-plugin-to-a-specific-versionnick_hamlin
09/15/2021, 3:10 PMdouwe_maan
09/15/2021, 3:14 PMnick_hamlin
09/15/2021, 3:28 PMdouwe_maan
09/15/2021, 3:34 PMnick_hamlin
09/15/2021, 3:34 PMnick_hamlin
09/15/2021, 6:11 PMnick_hamlin
09/21/2021, 3:57 PM