Frappe Desk Form Save Show INTERNAL SERVER ERROR

Hi, Everyone.
I am using Client Script inside doctype. This my Client Script and i use for retreive from json to select option.

My Problem is, when i want to save my form, show error on console.log like this

where i miss it?