Python 保存记录,服务器内部报错

在用 python 上传资料,到最好 save的时候报错,重试还是出错,求快速给了反馈。

LeanCloudError: [1] 服务器内部错误,如有疑问请从帮助菜单进入社区提交问题,内部错误代码: 0sxxLaim

app id: ykNwjXfcy7bYxeEfDPNsjQvK-gzGzoHsz

LeanCloudError: [1] 服务器内部错误,如有疑问请从帮助菜单进入社区提交问题,内部错误代码: Xnc2svfT

麻烦帮我看看,急,在线等

newDiscount = discountObject()
newDiscount.set('amount', discount["amount"])
newDiscount.set('count', discount['count'])
newDiscount.set('end', datetime.strptime(discount['end'], "%Y-%m-%d %H:%M:%S"))
newDiscount.set('start', datetime.strptime(discount['start'], "%Y-%m-%d %H:%M:%S"))
newDiscount.set('min', discount['min'])
newDiscount.set('shop', shop)
newDiscount.set('threshold', discount['threshold'])
newDiscount.save()

goodsObject = leancloud.Object.extend("goods")
newObject = goodsObject()
newObject.set('detailImage', detailImage)
newObject.set('property', goodsProfile["property"])
newObject.set('shop', shop)
newObject.set('headImageList', headImageList)
newObject.set('title', goodsProfile["title"])
newObject.set('inventory', goodsProfile["inventory"])
newObject.set('status', 1)
newObject.set('identifier', goods)
newObject.set('price', goodsProfile['price'])
newObject.set('firstImage', firstImage)
if newDiscount is not None:
newObject.set('discount', newDiscount)

    try:
        newObject.save()
    except leancloud.LeanCloudError as e:
        print e

你好,请提供一下代码片段

1 人赞了这个帖子.