dexplo / jupyter_to_medium

Python package for publishing Jupyter Notebooks as Medium blogposts
https://dexplo.org/jupyter_to_medium
MIT License
144 stars 13 forks source link

Failed to post to Medium #45

Closed norochalise closed 2 years ago

norochalise commented 2 years ago

Returned error message below

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

Traceback (most recent call last): File \"C:\Users\mountboy\anaconda3\lib\site-packages\jupyter_to_medium\_bundler.py\", line 37, in upload data = publish(kwargs) File \"C:\Users\mountboy\anaconda3\lib\site-packages\jupyter_to_medium\_publish_to_medium.py\", line 300, in publish p.main() File \"C:\Users\mountboy\anaconda3\lib\site-packages\jupyter_to_medium\_publish_to_medium.py\", line 216, in main self.author_id = self.get_author_id() File \"C:\Users\mountboy\anaconda3\lib\site-packages\jupyter_to_medium\_publish_to_medium.py\", line 96, in get_author_id return r.json()['data']['id'] File \"C:\Users\mountboy\anaconda3\lib\site-packages\requests\models.py\", line 900, in json return complexjson.loads(self.text, kwargs) File \"C:\Users\mountboy\anaconda3\lib\json\init.py\", line 357, in loads return _default_decoder.decode(s) File \"C:\Users\mountboy\anaconda3\lib\json\decoder.py\", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File \"C:\Users\mountboy\anaconda3\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)

mjam03 commented 2 years ago

Hi,

Yes I'm getting the same issue - I'm going to email Medium and see what the issue is. It seems like authentication is failing when trying to pull the author ID from the Medium API.

Will keep you updated, Mark

norochalise commented 2 years ago

Hi Mark,

Yes Its looks medium issue. I try to contact medium but there is another signing issue. Hope it will solve soon. If you get any update please share it. Thank you!

Best regards, Noro

mjam03 commented 2 years ago

It seems to be working now for me - how is it for you?

If working then pls close the issue otherwise I'll dig into it.

Thanks, Mark

norochalise commented 2 years ago

Yes, Its working.

best regards, Noro