Problem in inserting data into doctype Item using frappeclient

I am trying to insert data into Item doctype using frappeclient but here is a problem that is document field website_image always remain null even if I am trying to insert image link into it

        doc ={
               "doctype": "Item",
               .
               .
               'image':image_url,
               'website_image':image_url,
               'thumbnail':image_url,
            }
            .
            .
            .
            client.insert(doc)

clinet.update(doc) always through an exception of some JSON parsing error.

There’s a traceback buried in the console output, the JSON parsing error is not the actual error.
Try your same script without anything assigned to website_image if you haven’t already.

1 Like