Hello,
While using REST API for creating Support Ticket From one setup instance to another instance,
I am getting following error while tracing the response.text
File "/home/saurabh/Documents/alek/erpnext-bench/apps/frappe/frappe/app.py", line 49, in application
response = frappe.api.handle()
File "/home/saurabh/Documents/alek/erpnext-bench/apps/frappe/frappe/api.py", line 42, in handle
return frappe.handler.handle()
File "/home/saurabh/Documents/alek/erpnext-bench/apps/frappe/frappe/handler.py", line 66, in handle
execute_cmd(cmd)
File "/home/saurabh/Documents/alek/erpnext-bench/apps/frappe/frappe/handler.py", line 72, in execute_cmd
method = get_attr(cmd)
File "/home/saurabh/Documents/alek/erpnext-bench/apps/frappe/frappe/handler.py", line 95, in get_attr
method = globals()[cmd]
KeyError: u'Support Ticket'
My code for calling REST is
import json
import requests
data = {}
data['raised_by'] = self.raised_by
data['subject']= self.subject
data['status']= self.status
data['company']= self.company
headers = {'content-type': 'application/json'}
response =
requests.post(url, data=json.dumps(data) ,headers=headers)
frappe.errprint(response.text)