confluence-publisher
confluence-publisher copied to clipboard
conf_page_maker throws unhandled exception
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?