michael_lan
04/12/2023, 7:11 PMself.mapper.stream_maps[stream_name]
it does not find it, but it is in the config.
I run the target like this poetry run my-target --input ./.secrets/input.json --config ./.secrets/config.json
and the error is
File "/home/michaellan/.cache/pypoetry/virtualenvs/my-target-Xvc50PbJ-py3.10/lib/python3.10/site-packages/singer_sdk/target_base.py", line 304, in _process_record_message
for stream_map in self.mapper.stream_maps[stream_name]:
KeyError: 'target-one'
my config look this
{
"streams": [
{
"tap_stream_id": "target-one",
"replication_method": "FULL_TABLE",
"key_properties": [
"id"
],
"schema": {...
},
"stream": "target-one",
"metadata": [...
]
}
]
}
and my input look like this
{
"type": "RECORD",
"stream": "target-one",
"record": {...},
"time_extracted": "2023-04-12T17:44:34.732968+00:00"
}