Lets start a thread on this :point_down:
# getting-started
a
Lets start a thread on this 👇
here
Did you try
meltano ui
and setting your
tap-weather
config there?
maybe start with a
jsonl
loader first so you can confirm the extraction is working
s
Yes
Everthing is fine
But showing str assignment error with postgres
a
# Test invocation:
meltano invoke tap-genesyscloud --version
# OR run a test
elt
pipeline:
meltano elt tap-genesyscloud target-jsonl
oh str-> varchar
This rep of singer tap ive made
Just look at init.py
a
cant clone this right now man sorry using work machine
but yeah lets look at the init
s
In tap weather folder
a
is this a forked singer tap?
I
s
No
Ive built it locally
a
so you wrote this tap?
s
Yes
a
is it outputting with something like
target-jsonl
?
where is the root issue in your pipeline?
is it the target part or the tap part?
btw theres a meltano rest steam class if oyu use the meltano sdk
s
Yes
See
message has been deleted
Json file is like this
For target json
Extracting complete
But it is outputting as above
a
cool,! Okay, are you outputting each character intentionally?
That is not json-like. Each entry in your json should by a json object. eg.
{"itemname":"itemvalue", "anothername":"anothervalue"}
given the postgres target will be expecting dictionaries, this might be your root cause
try ``singer.write_records('employees', records=[DATA])``
wrapping DATA in an array
s
No
If u can see init file in tap-wetaher
I was just passing
Dictionary
To records
message has been deleted
After trying above
Method
Records=[data]
a
okay, but those records are still not valid json
they’re escaped strings
so it’ll likely fail to process because it’s still not in a form that the target will be expecting
try removing the json.dumps()
s
Kk ill try
Thanks man @adam_rudd its working fine
a
woo!