Hi all, someone can help me to understand how I ca...
# singer-targets
m
Hi all, someone can help me to understand how I can debug a target made with singer sdk, I passed the input and the config files (which includes the streams) but it does not work, whenever you go to look for the stream in
self.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
Copy code
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
Copy code
{
  "streams": [
    {
      "tap_stream_id": "target-one",
      "replication_method": "FULL_TABLE",
      "key_properties": [
        "id"
      ],
      "schema": {...
      },
      "stream": "target-one",
      "metadata": [...
      ]
    }
  ]
}
and my input look like this
Copy code
{
    "type": "RECORD",
    "stream": "target-one",
    "record": {...},
    "time_extracted": "2023-04-12T17:44:34.732968+00:00"
}