singer-io / singer-io/tap-github
json.decoder.JSONDecodeError when running tap-github
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 76
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
I am getting an error json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) when I run tap-github\
Steps to reproduce:
- Create virtual environment
virtualenv -p python3 venv .\Scripts\activateto activate virtual envpip install tap-github- edited
config.jsonto add github access token - edited properties.json to add
"selected": true,for required streams - ran
tap-github --config config.json --properties properties.json
Errors:
CRITICAL Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "X:\CODE\tap\venv\Scripts\tap-github.exe\__main__.py", line 7, in <module>
File "x:\code\tap\venv\lib\site-packages\singer\utils.py", line 225, in wrapped
return fnc(*args, **kwargs)
File "x:\code\tap\venv\lib\site-packages\tap_github\__init__.py", line 977, in main
args = singer.utils.parse_args(REQUIRED_CONFIG_KEYS)
File "x:\code\tap\venv\lib\site-packages\singer\utils.py", line 174, in parse_args
args.properties = load_json(args.properties)
File "x:\code\tap\venv\lib\site-packages\singer\utils.py", line 109, in load_json
return json.load(fil)
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\dgoswami\AppData\Local\Programs\Python\Python39\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The traceback points to singer.utils.parse_args/load_json while tap_github.init.py main invokes argument parsing. Reproduce with the listed virtual environment, config.json, properties.json, and tap-github command, then inspect whether properties.json is empty or invalid. The issue does not specify the expected handling or a clear definition of done, so that scope needs clarification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, python
- Domain
- api, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100