After installing the above modified TracCustomFieldAdmin Plugin, When i click on new Ticket and save it give error "
Trac detected an internal error:TypeError: Object of type bytes is not JSON serializable
This is probably a local installation issue.
Found a bug in Trac?If you think this should work and you can reproduce the problem, you should consider creating a bug report.
Note that the following plugins seem to be involved: MultipleWorkflowPlugin, TracAccountManager, TracCustomFieldAdmin, TracIniAdmin, TracLDAPAuth, TracPermRedirect, TracTicketFieldsLayoutPlugin, TracXMLRPC, WebhookNotificationPlugin Please report this issue to the plugin maintainer.
Before you do that, though, please first try searching for similar issues , as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the mailing list instead of creating a ticket.
Python TracebackMost recent call last:File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 610, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 302, in dispatch
raise e
File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 248, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 162, in process_request
return self._process_newticket_request(req)
File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 513, in _process_newticket_request
self._do_create(req, ticket, action)
File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 1334, in _do_create
ticket.insert()
File "/usr/local/lib/python3.12/site-packages/trac/ticket/model.py", line 323, in insert
listener.ticket_created(self)
File "/usr/local/lib/python3.12/site-packages/webhook_notification/__init__.py", line 144, in ticket_created
self.notify('ticket', 'created', values)
File "/usr/local/lib/python3.12/site-packages/webhook_notification/__init__.py", line 112, in notify
data_body = json.dumps(data).encode("utf-8")
File "/usr/lib64/python3.12/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib64/python3.12/json/encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python3.12/json/encoder.py", line 258, in iterencode
return _iterencode(o, 0)
File "/usr/lib64/python3.12/json/encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '