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

Deploy as Medium Post returns JSONDecodeError #72

Open
kir0ul opened this issue May 3, 2023 · 0 comments
Open

Deploy as Medium Post returns JSONDecodeError #72

kir0ul opened this issue May 3, 2023 · 0 comments

Comments

@kir0ul
Copy link

kir0ul commented May 3, 2023

Hi there,

I get a similar error as #45:

Failed to post to Medium

Returned error message below

"JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Traceback (most recent call last):
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/requests/models.py\", line 971, in json
return complexjson.loads(self.text, **kwargs)
File \"/home/apierre/.pyenv/versions/3.10.4/lib/python3.10/json/__init__.py\", line 346, in loads
return _default_decoder.decode(s)
File \"/home/apierre/.pyenv/versions/3.10.4/lib/python3.10/json/decoder.py\", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File \"/home/apierre/.pyenv/versions/3.10.4/lib/python3.10/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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/jupyter_to_medium/_bundler.py\", line 71, in upload
data = publish(**kwargs)
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/jupyter_to_medium/_publish_to_medium.py\", line 449, in publish
p.main()
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/jupyter_to_medium/_publish_to_medium.py\", line 306, in main
self.author_id = self.get_author_id()
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/jupyter_to_medium/_publish_to_medium.py\", line 134, in get_author_id
return r.json()[\"data\"][\"id\"]
File \"/home/apierre/Dev/tuto-frozenlake/.direnv/python-3.10.4/lib/python3.10/site-packages/requests/models.py\", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
"

Any idea what's happening?

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