All Products page returning OSError

Hi guys,

I just installed a plain new ERPNext in my PC, after setting up, I inserted a few items and tick the “Show In Website” checkbox. But when I go to All Product page /all-products it shows the following error.


Is it that I missing something? I checked the permission for Guest and Customer, it is the same as one of my working ERPNext Instance. The Website Settings, Product Settings and Shopping Cart Setting are also exactly the same as the working ERPNext instance.

Could it be the new version causing this problem?
System Version:
ERPNext: v13.x.x-develop () (develop)
Frappe Framework: v13.x.x-develop () (develop)

Is there any way to debug this? or is there a walkaround/solution for this issue. Thanks in advance.

Further debugging:

It is cause by an error in the frappe.desk.form.save.savedocs
some doctype is unable to save. As I debug the shopping cart try to create a new contact and new customer for Guest, the first time visit the page, because it prompt error when trying to save the contact, it causing the whole page return error.

Following is the error return:








looks like is something wrong with the linking, if current saving document have linkage to other doctype, it will throw error.