Fix issue: There is an error appear "ValueError: No JSON object could be decoded" when data is sent from SAP to ERPNext in http request body.
Signed-off-by: Yaroslav <jarsyxx@gmail.com>
This commit is contained in:
parent
a115df59dc
commit
7f571798d9
1 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ def application(request):
|
|||
response = frappe.handler.handle()
|
||||
|
||||
elif frappe.request.path.startswith("/api/"):
|
||||
if frappe.local.form_dict.data is None:
|
||||
frappe.local.form_dict.data = request.get_data()
|
||||
response = frappe.api.handle()
|
||||
|
||||
elif frappe.request.path.startswith('/backups'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue