JSON API unable to post error, cannot read properties of null (reading length)


I am receiving this error while posting the blog to wordpress site in post uploader task, what can be issue as I can not figure it out?


I am also facing this same error

Can you export both your project + article files you are trying to export?

I tried to replicate the error but so far unable to.

Also make sure you download and update SCM (just in case)

I am trying to post on my websites using post uploader tool and facing this error there everything is updated i have updated the tool as well

Can you export the task, and also zip up the articles files you are trying to upload?

I need them to see what the errors are.

Also rerun the task in the new update and post a screenshot of the task log again.

I added extra logging.

After investigation I found the following.

1 - Images in the post have images with src to an ‘/image’ folder

Caused by setting Article creator insert images to using the ‘/images’ sub folder.

image

Ie, articles appear with image folder.

image

2 - Upload poster tries to find ‘/images’ but can’t do it.

Instead it fails with cryptic

-JSON API error Cannot read properties of null (reading 'length')

With next update, the post uploader will ignore these relative image srcs.

What is Cache vs ‘/images’

Cached inserts image tags with the src using a proper path to an image on your hard drive.

‘/images’ is a URL relative path and assume images are already on your server.

If you want SCM to upload images, then you must recreate articles with the proper insert image setting.

ie. You must select ‘cached’ which is the default for all tasks