travis ci - ansible-galaxy login: Unexpected Exception: No JSON object could be decoded -


i have been search on , can't seem solve issue. trying setup travis integration ansible role. according docs need authenticate first. run ansible-galaxy login, provide github details , then: unexpected exception: no json object decoded.

the traceback:

    file "/usr/local/bin/ansible-galaxy", line 85, in <module>     sys.exit(cli.run())   file "/usr/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 152, in run     self.execute()   file "/usr/local/lib/python2.7/site-packages/ansible/cli/__init__.py", line 99, in execute     fn()   file "/usr/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 553, in execute_login     galaxy_response = self.api.authenticate(github_token)   file "/usr/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 119, in authenticate     data = json.load(resp)   file "/usr/local/cellar/python/2.7.10_2/frameworks/python.framework/versions/2.7/lib/python2.7/json/__init__.py", line 290, in load     **kw)   file "/usr/local/cellar/python/2.7.10_2/frameworks/python.framework/versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads     return _default_decoder.decode(s)   file "/usr/local/cellar/python/2.7.10_2/frameworks/python.framework/versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   file "/usr/local/cellar/python/2.7.10_2/frameworks/python.framework/versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode     raise valueerror("no json object decoded") valueerror: no json object decoded 

i tried reinstall ansible no luck. ideas?

this feature not implemented yet in earlier versions of ansible galaxy. if update latest version of ansible: v2.0.0.2 issue should resolved.


Comments