Open geohadab opened 3 years ago
I am trying to publish articles on devto website but I get the following error
LOGGER.info('Published {} to {}'.format(post.meta('slug'), m_post['url'])) KeyError: 'url'
I investigated and found that this error occurs in this line of pydevto.py
pydevto.py
m_post = api.create_article( title=post.title(), body_markdown=content, published=True, canonical_url=post.permalink(absolute=True), tags=post.tags ) #! added print(m_post, type(m_post))
when I printed the returned values and its type I get {'error': 'article param must be a JSON object. You provided article as a NilClass', 'status': 422} <class 'dict'> for more information about this error click
{'error': 'article param must be a JSON object. You provided article as a NilClass', 'status': 422} <class 'dict'>
cc @MattiooFR
I’ll look info it and let you know
I am trying to publish articles on devto website but I get the following error
LOGGER.info('Published {} to {}'.format(post.meta('slug'), m_post['url'])) KeyError: 'url'
I investigated and found that this error occurs in this line of
pydevto.py
when I printed the returned values and its type I get
{'error': 'article param must be a JSON object. You provided article as a NilClass', 'status': 422} <class 'dict'>
for more information about this error click