helpdesk icon indicating copy to clipboard operation
helpdesk copied to clipboard

Error while creating ticket from Agent Portal

Open asoral opened this issue 1 year ago • 14 comments

Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 95, in application response = frappe.api.handle() File "apps/frappe/frappe/api.py", line 54, in handle return frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 47, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 85, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/init.py", line 1622, in call return fn(*args, **newargs) File "apps/helpdesk/helpdesk/helpdesk/doctype/hd_ticket_template/api.py", line 17, in get_one found, about = frappe.get_value(DOCTYPE_TEMPLATE, name, ["name", "about"]) TypeError: cannot unpack non-iterable NoneType object

asoral avatar Sep 16 '23 14:09 asoral

Cannot read properties of undefined (reading 'filter')

asoral avatar Sep 16 '23 14:09 asoral

Can you share a screenshot/recording/payload? name is either missing or the template does not exist

ssiyad avatar Sep 18 '23 11:09 ssiyad

Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 95, in application response = frappe.api.handle() File "apps/frappe/frappe/api.py", line 54, in handle return frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 47, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 85, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/init.py", line 1622, in call return fn(*args, **newargs) File "apps/helpdesk/helpdesk/helpdesk/doctype/hd_ticket_template/api.py", line 17, in get_one found, about = frappe.get_value(DOCTYPE_TEMPLATE, name, ["name", "about"]) TypeError: cannot unpack non-iterable NoneType object

asoral avatar Sep 22 '23 14:09 asoral

image

asoral avatar Sep 22 '23 14:09 asoral

@asoral what is the payload? You can see that in request (network tab)

ssiyad avatar Sep 28 '23 09:09 ssiyad

The error is when there is no ticket template of name Default. I created one manually and got it resolved for now. But couldn't understand why would that be a validation

asoral avatar Oct 03 '23 03:10 asoral

I have the same problem

image

Network Tab:

image

HishamDF avatar Nov 06 '23 07:11 HishamDF

I encountered an issue upon opening the Frappe Helpdesk for the first time after installation. When I clicked on "New Ticket," I received the following error messages:

"TypeError: Internal Server Error"

Upon attempting to submit a new ticket, the error message "A.value is undefined" was displayed.

this the console log

POST http://127.0.0.1:8000/api/method/helpdesk.helpdesk.doctype.hd_ticket_template.api.get_one [HTTP/1.1 500 INTERNAL SERVER ERROR 18ms]

Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 110, in application response = frappe.api.handle(request) File "apps/frappe/frappe/api/init.py", line 49, in handle data = endpoint(**arguments) File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call return frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 49, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 85, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/init.py", line 1701, in call return fn(*args, **newargs) File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper return func(*args, **kwargs) File "apps/helpdesk/helpdesk/helpdesk/doctype/hd_ticket_template/api.py", line 17, in get_one found, about = frappe.get_value(DOCTYPE_TEMPLATE, name, ["name", "about"]) TypeError: cannot unpack non-iterable NoneType object

the payload request

name:"Default"

Screenshot 2024-02-05 045249

image

Karam-Qutran avatar Feb 05 '24 01:02 Karam-Qutran

Experiencing the same issue, did you find any solution ?? When I clicked on "New Ticket," I received the following error messages:

"TypeError: Internal Server Error"

rajamuppidi avatar Mar 17 '24 21:03 rajamuppidi

Experiencing the same issue, did you find any solution ?? When I clicked on "New Ticket," I received the following error messages:

"TypeError: Internal Server Error"

To resolve this issue, navigate to doctype > Ticket Template, then create a new Ticket Template named "Default" and it should function properly.

Karam-Qutran avatar Mar 17 '24 22:03 Karam-Qutran

I have added the said default template when i click new ticket and submit a ticket its now getting Internal Server Error popup message

rajamuppidi avatar Mar 17 '24 23:03 rajamuppidi

I have added the said default template when i click new ticket and submit a ticket its now getting Internal Server Error popup message

after adding new Ticket Template named "Default"

add doctype >HD Ticket Type

image

doctype >HD Ticket Priority image

doctype >HD Preset Filter

image

and add any think in HD Service Level Agreement like image

Karam-Qutran avatar Mar 17 '24 23:03 Karam-Qutran

doctype >HD Preset Filter

image image image image image

Karam-Qutran avatar Mar 18 '24 00:03 Karam-Qutran

I have added all the doc mentioned, but still getting the same kind of error

Screenshot 2024-03-18 at 6 47 15 PM (2)

Please help

rajamuppidi avatar Mar 18 '24 22:03 rajamuppidi

should be fixed now, re-open if the issue still persists

RitvikSardana avatar Aug 24 '24 09:08 RitvikSardana