Open kumarvinod002 opened 4 years ago
Even if i run tap-jira in discovery mode leaving all values for each key in config empty { "start_date": "", "username": "", "password": "", "base_url": "", "user_agent": "" } or I run with actual correct values, in both cases I get same catalog.json file and I get no exceptions.
The catalog for jira is built completely from the schema files I believe, so this is not surprising to me
File "c:\singer\tap-jira\lib\site-packages\singer\utils.py", line 174, in parse_args args.properties = load_json(args.properties)
Seems like you have invalid JSON in the catalog made by the tap / in your edits with the metadata
Is singer compatible with powershell and windows ?
No clue. The taps are only written with a *nix environment in mind
@luandy64 thanks for your response
File "c:\singer\tap-jira\lib\site-packages\singer\utils.py", line 174, in parse_args args.properties = load_json(args.properties)
Seems like you have invalid JSON in the catalog made by the tap / in your edits with the metadata classmethod in catalog.py was
def load(cls, filename):
with open(filename) as fp: # pylint: disable=invalid-name
return Catalog.from_dict(json.load(fp))
which wasnt working for me in python 3.9 I had to update to
def load(cls, filename):
with open(filename,**encoding="utf-16"**) as fp: # pylint: disable=invalid-name
return Catalog.from_dict(json.load(fp))
I just edited tap_config.json with my JIRA credentials, urls, start_date and useragent. Then I executed
tap-jira -c config-jira.json -d > catalog.json
tap-jira -c config-jira.json -p catalog.json
noticed in code that -p is depreciated
kindly update README.md for same
moving ahead I also tried
tap-jira -c config-jira.json --catalog catalog.json
In that case I am not getting nay RECORD in data.
I didn't edited anything else. Executed with catalog file generated by discovery mode and set
"selected": true
for project type schema in catalog.json
Am I missing something in execution ? Is there something else I need to do ? I am new user It would be kind of you if you can guide me a little here please.
@luandy64
Context.is_selected(stream.tap_stream_id)
is not returning true for any of my streams
even if I have "selected": true, added to catalog file
You should read this guide, I'm not sure you edited the catalog correctly https://github.com/singer-io/getting-started/blob/master/docs/DISCOVERY_MODE.md#example-2
open(filename,encoding="utf-16")
Seems like this is what is needed to get things working on Windows? I'm not sure what to think here
@luandy64 thanks for the info on metadata, but in order to get my catalog.json read by tap-jira for sync I had to change tap-jira/init.py from
catalog = Catalog.from_dict(args.properties) \ if args.properties else discover()
to
catalog = args.catalog \ if args.catalog else discover()
Other wise it was expecting -p only and not even accepting -- catalog As per documentation property option is now stale.
also send method in http.py for request needed update for handling failing SSL_VERIFICATION
If its feasible for you could you please check and modify code in your repo also please?
I have got it working with target-csv for stream: projects I am exploring other streams e.g. version, issues etc for which I am seeing some exceptions. I will share the relevant information if required.
Thanks in advance.
Hi I am using tap-jira and target-csv to export jira data hosted locally to csv I have configured config.json for jira and tried both discovery mode and sync mode
tap-jira -c config-jira.json -d > catalog.json
tap-jira -c config-jira.json -p catalog.json
There are few issues to be noticed here:
{ "start_date": "", "username": "", "password": "", "base_url": "", "user_agent": "" }
or I run with actual correct values, in both cases I get same catalog.json file and I get no exceptions.Q1. Is singer compatible with powershell and windows ? Q2. Is there something that I am missing in execution ?