Traceback (most recent call last):
File "apps/frappe_whatsapp/frappe_whatsapp/frappe_whatsapp/doctype/whatsapp_notification/whatsapp_notification.py", line 189, in notify
frappe.get_doc({
File "apps/frappe/frappe/model/document.py", line 337, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 359, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 292, in insert
self._validate()
File "apps/frappe/frappe/model/document.py", line 574, in _validate
self._validate_mandatory()
File "apps/frappe/frappe/model/document.py", line 911, in _validate_mandatory
raise frappe.MandatoryError(
frappe.exceptions.MandatoryError: [WhatsApp Message, 8dclqi0ppk]: content_type
During handling of the above exception, another exception occurred:
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 1768, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 337, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 359, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 315, in insert
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1128, in run_post_save_methods
self.run_method("on_update")
File "apps/frappe/frappe/model/document.py", line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1322, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1306, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "apps/frappe_whatsapp/frappe_whatsapp/utils/__init__.py", line 27, in run_server_script_for_doc_event
).send_template_message(doc)
File "apps/frappe_whatsapp/frappe_whatsapp/frappe_whatsapp/doctype/whatsapp_notification/whatsapp_notification.py", line 170, in send_template_message
self.notify(data)
File "apps/frappe_whatsapp/frappe_whatsapp/frappe_whatsapp/doctype/whatsapp_notification/whatsapp_notification.py", line 202, in notify
response = frappe.flags.integration_request.json()['error']
KeyError: 'error'
{
"exception": "KeyError: 'error'",
"exc_type": "KeyError",
"_exc_source": "frappe_whatsapp (app)",
"_server_messages": "[\"{\\\"message\\\": \\\"Email sent to samp@samp.com\\\", \\\"title\\\": \\\"Message\\\"}\", \"{\\\"message\\\": \\\"Error: Value missing for WhatsApp Message: Content Type\\\", \\\"title\\\": \\\"Message\\\"}\"]"
}
I've noticed this error appears to remain in cache, even after modifying the document to no longer send email to samp@samp.com, the error retains that error message.
This was on a template with no variables.
On another template with variables, if I attempted to use dates, the message would not be sent. If variables are changed to text, then it gets sent, but still shows the error message.
When attempting to save, message is correctly sent, but I get this error:
Error: Value missing for WhatsApp Message: Content Type
KeyError: 'error' Possible source of error: frappe_whatsapp (app)
App Versions
Route
Traceback
Request Data
Response Data
I've noticed this error appears to remain in cache, even after modifying the document to no longer send email to samp@samp.com, the error retains that error message.
This was on a template with no variables.
On another template with variables, if I attempted to use dates, the message would not be sent. If variables are changed to text, then it gets sent, but still shows the error message.
Please help.