Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf_page_maker throws unhandled exception #9

Open
danwos opened this issue Feb 9, 2017 · 0 comments
Open

conf_page_maker throws unhandled exception #9

danwos opened this issue Feb 9, 2017 · 0 comments

Comments

@danwos
Copy link

danwos commented Feb 9, 2017

I'm calling conf_page_maker like

conf_page_maker publisher.yml --user [email protected] -pid 12345123

My publisher.yml config file:

version: 2
url: https://xy.atlassian.net/wiki
base_dir: _build/json/
pages:
- title: test me

As you can see, I'm trying to run this on Atlassian Cloud.
However, during execution I get the following exception:

Traceback (most recent call last):
...
  File "/home/daniel/workspace/envs/sphinx/lib/python3.5/site-packages/conf_publisher/confluence_api.py", line 64, in _request
    ret = r.json()
  File "/home/daniel/workspace/envs/sphinx/lib/python3.5/site-packages/requests/models.py", line 866, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I'm not sure if this error is thrown, because my config is a mess and the script can't open a file and therefore sends 0 bytes. Or if confluence is sending back 0 bytes.

Any ideas?

@danwos danwos changed the title conf_page_make throws unhandled exception conf_page_maker throws unhandled exception Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant