ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

API Endpoint call error using access token



Hello guys,
When I am trying to call bellowed api with valid oauth2.0 access token


I am getting this error response.

“exc”: “[“Traceback (most recent call last):\n File \”/home/frappe/frappe-bench/apps/frappe/frappe/\”, line 66, in application\n response = frappe.api.handle()\n File \"/home/frappe/frappe-bench/apps/frappe/frappe/\", line 56, in handle\n return frappe.handler.handle()\n File \"/home/frappe/frappe-bench/apps/frappe/frappe/\", line 21, in handle\n data = execute_cmd(cmd)\n File \"/home/frappe/frappe-bench/apps/frappe/frappe/\", line 54, in execute_cmd\n is_whitelisted(method)\n File \"/home/frappe/frappe-bench/apps/frappe/frappe/\", line 64, in is_whitelisted\n raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))\nPermissionError: Not Allowed, <function get_logged_user at 0x7f9c027a9c08>\n"]",
“_server_messages”: “[”{\“message\”: \“Not permitted\”}"]"