miguel_angel_lobato
10/29/2021, 5:03 PMexport TAP_GITHUB_ACCESS_TOKEN='XXXX'
export TAP_GITHUB_REPOSITORY='XXXX'
export TAP_GITHUB_START_DATE='2000-01-01'
meltano init github-json
cd github-json
meltano --log-level=debug add extractor tap-github
meltano --log-level=debug add loader target-jsonl
meltano --log-level=debug elt tap-github target-jsonl
Some files are created in output by process crash by an errormiguel_angel_lobato
10/29/2021, 5:04 PMjsonschema.exceptions.ValidationError: {'name': 'XXXX', 'id': 3432713, 'node_id': 'XXXX=', 'slug': 'eng-leaders', 'description': '', 'privacy': 'closed', 'url': 'https
://api.github.com/organizations/XXXX/team/XXXX', 'html_url': '<https://github.com/orgs/XXXX/teams/eng-leaders>', 'members_url': '<https://api.github.com/organizations/5XXXX/team/3XXX/members{/member}>',
'repositories_url': '<https://api.github.com/organizations/5XXX/team/343XXX/repos>', 'permission': 'pull'} is not of type 'null', 'string'miguel_angel_lobato
10/29/2021, 5:06 PMroot@bbfd8fc42107:/project/github-csv# ls -la output/
total 64
drwxr-xr-x 2 root root 4096 Oct 29 17:03 .
drwxr-xr-x 11 root root 4096 Oct 29 17:02 ..
-rw-r--r-- 1 root root 43025 Oct 29 17:03 team_members.jsonl
-rw-r--r-- 1 root root 7315 Oct 29 17:03 team_memberships.jsonl
-rw-r--r-- 1 root root 1107 Oct 29 17:03 teams.jsonlmiguel_angel_lobato
10/29/2021, 5:06 PMjosh_lloyd
10/29/2021, 8:23 PMmiguel_angel_lobato
10/29/2021, 8:59 PMjosh_lloyd
10/29/2021, 9:14 PMjosh_lloyd
10/29/2021, 9:36 PMmiguel_angel_lobato
10/30/2021, 5:26 PMedgar_ramirez_mondragon
10/31/2021, 1:45 AMteam object schema is incorrectly declared as string, so json validation from target-jsonl is catching it. You should be able to override that schema definition with https://meltano.com/docs/plugins.html#schema-extra to make it work, and also let the singer-io/tap-github folks know of this bug simple smile. Let me know if that solves the problem.miguel_angel_lobato
10/31/2021, 8:01 AM