I am getting 500 Internal server error in response of below API:
Rest Request: https://priyasales.erpnext.com/api/resource/item
Response log:
{“exception”:“pymysql.err.ProgrammingError: (‘DocType’, ‘item’)”,“exc”:“["Traceback (most recent call last):\n File \"apps/frappe/frappe/app.py\", line 66, in application\n response = frappe.api.handle()\n File \"apps/frappe/frappe/api.py\", line 131, in handle\n data = frappe.call(frappe.client.get_list, doctype, **frappe.local.form_dict)\n File \"apps/frappe/frappe/init.py\", line 1607, in call\n return fn(*args, **newargs)\n File \"apps/frappe/frappe/client.py\", line 63, in get_list\n return frappe.get_list(**args)\n File \"apps/frappe/frappe/init.py\", line 1896, in get_list\n return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)\n File \"apps/frappe/frappe/model/db_query.py\", line 196, in execute\n self.columns = self.get_table_columns()\n File \"apps/frappe/frappe/model/db_query.py\", line 527, in get_table_columns\n return get_table_columns(self.doctype)\n File \"apps/frappe/frappe/model/meta.py\", line 75, in get_table_columns\n return frappe.db.get_table_columns(doctype)\n File \"apps/frappe/frappe/database/database.py\", line 1161, in get_table_columns\n raise self.TableMissingError(\"DocType\", doctype)\npymysql.err.ProgrammingError: (‘DocType’, ‘item’)\n"]”}