crm icon indicating copy to clipboard operation
crm copied to clipboard

CRM Contacts Invalid Permission Error

Open sapl-santhosh opened this issue 8 months ago • 5 comments

Frappe CRM contact shows Not Permitted Internal Server Error

Image

Also could not able to provide role permission to CRM Contacts

Image

sapl-santhosh avatar Apr 15 '25 00:04 sapl-santhosh

@shariquerik i think this would be from v1.40 it seems none of user can use contacts in frappe for everyone its throwing Not Permitted Internal Server Error

sapl-santhosh avatar Apr 15 '25 01:04 sapl-santhosh

Encountering the same issues, any luck so far ?

DillanWhite avatar Apr 15 '25 23:04 DillanWhite

Same issue for me - Frappe CRM does not show it, but in desk I can see the contact properly.

Traceback with variables (most recent call last): File "apps/frappe/frappe/app.py", line 115, in application response = frappe.api.handle(request) request = <Request 'https://crm.paneluxe.in/api/method/crm.api.contact.get_contact' [POST]> response = None rollback = True e = TypeError('pop expected at least 1 argument, got 0') File "apps/frappe/frappe/api/__init__.py", line 49, in handle data = endpoint(**arguments) request = <Request 'https://crm.paneluxe.in/api/method/crm.api.contact.get_contact' [POST]> endpoint = <function handle_rpc_call at 0x7f0c7092d7e0> arguments = {'method': 'crm.api.contact.get_contact'} File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call return frappe.handler.handle() method = 'crm.api.contact.get_contact' frappe = <module 'frappe' from 'apps/frappe/frappe/__init__.py'> File "apps/frappe/frappe/handler.py", line 51, in handle data = execute_cmd(cmd) cmd = 'crm.api.contact.get_contact' data = None File "apps/frappe/frappe/handler.py", line 84, in execute_cmd return frappe.call(method, **frappe.form_dict) cmd = 'crm.api.contact.get_contact' from_async = False server_script = None method = <function get_contact at 0x7f0c6ddf5480> File "apps/frappe/frappe/__init__.py", line 1736, in call return fn(*args, **newargs) fn = <function get_contact at 0x7f0c6ddf5480> args = () kwargs = {'name': 'Kiriti Testing Live M', 'cmd': 'crm.api.contact.get_contact'} newargs = {'name': 'Kiriti Testing Live M'} File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper return func(*args, **kwargs) args = () kwargs = {'name': 'Kiriti Testing Live M'} apply_condition = <function whitelist.<locals>.innerfn.<locals>.<lambda> at 0x7f0c6ddf53f0> func = <function get_contact at 0x7f0c6ddf5360> File "apps/crm/crm/api/contact.py", line 33, in get_contact contact = contact.pop() name = 'Kiriti Testing Live M' contact = {'name': 'Kiriti Testing Live M', 'owner': '[email protected]', 'creation': datetime.datetime(2025, 4, 13, 21, 17, 8, 196994), 'modified': datetime.datetime(2025, 4, 14, 9, 24, 18, 460551), 'modified_by': 'Administrator', 'docstatus': 0, 'idx': 1, 'first_name': 'Kiriti Testing Live', 'middle_name': None, 'last_name': 'M', 'full_name': 'Kiriti Testing Live M', 'email_id': '[email protected]', 'user': None, 'address': None, 'sync_with_google_contacts': 0, 'status': 'Open', 'salutation': '', 'designation': None, 'gender': '', 'phone': '', 'mobile_no': '+19794024197', 'company_name': '', 'image': '', 'google_contacts': None, 'google_contacts_id': None, 'pulled_from_google_contacts': 0, 'is_primary_contact': 0, 'department': None, 'unsubscribed': 0, 'doctype': 'Contact', 'email_ids': [{'name': '76qho43brg', 'owner': '[email protected]', 'creation': datetime.datetime(2025, 4, 13, 21, 17, 8, 196994), 'modified': datetime.datetime(2025, 4, 14, 9, 24, 18, 460551), 'modified_by': 'Administr... builtins.TypeError: pop expected at least 1 argument, got 0

mkiritisai avatar Apr 16 '25 04:04 mkiritisai

+1

jameswong3388 avatar Apr 21 '25 06:04 jameswong3388

not permitted error is solved in v1.41 but could not able to restric access to CRM Contacts.

Image

Or is the CRM contacts default permission for all users of Frappe CRM?

sapl-santhosh avatar Apr 23 '25 00:04 sapl-santhosh

@sapl-santhosh Could you please explain the use case?

michellealva avatar Jun 04 '25 04:06 michellealva