Error on Frappe API call (Value Error: No JSON object could be decoded)

Greetings,

I am getting the following error while calling the simple get method in latest ERPNext.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 59, in application
init_request(request)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 119, in init_request
make_form_dict(request)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 127, in make_form_dict
args = json.loads(request.data)
File “/usr/lib/python2.7/json/init.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

Is there any problem in inbuild frappe file?
Any help is welcome

Are you running a VM?

The same problem, but in a VM environment Latest - ERPNext-Production.ova - Error: No JSON object could be decoded

Hi,

Encountering the same issue when trying to save a doctype that was populated by calling a custom method (mapping fields from another doc)

Any solution please?

Kind regards

Hi @Riteah

Did you find a solution to this?

Kind regards,

Okay, so I got around this after doing the following:

  1. Ensuring the json file for my custom doctype was created in the repository (custom app) by enabling developer mode and being careful to only edit the custom doctypes in the custom app before disabling developer mode

  2. Updating bench

Cheers

1 Like