Hi Team, I have to build a REST Target, but I am n...
# troubleshooting
s
Hi Team, I have to build a REST Target, but I am not able to figure out how to debug it. Are there any relevant documents to help with target build and debugging?
1
I am trying to start target.py in debug mode but it is stuck at 2024-05-20 135222,612 | INFO | target-abc | Target 'target-abc' is listening for input from tap. how can I get this started
ok figured it out invoke target with JSONL file as --input <FILE> The file Format Should be SCHEMA record and then the data record
Copy code
{"type": "SCHEMA", "stream": "users", "key_properties": ["id"], "schema": {"required": ["id"], "type": "object", "properties": {"id": {"type": "integer"}}}}
{"type": "RECORD", "stream": "users", "record": {"id": 1, "name": "Chris"}}
{"type": "RECORD", "stream": "users", "record": {"id": 2, "name": "Mike"}}
Find more details on Messages here -- > https://hub.meltano.com/singer/spec/#messages
👍 1