Traceback (most recent call last):
File “/home/anshul/frappe-bench/apps/frappe/frappe/app.py”, line 54, in application
init_request(request)
File “/home/anshul/frappe-bench/apps/frappe/frappe/app.py”, line 110, in init_request
frappe.init(site=site, sites_path=_sites_path)
File “/home/anshul/frappe-bench/apps/frappe/frappe/init.py”, line 150, in init
local.conf = _dict(get_site_config())
File “/home/anshul/frappe-bench/apps/frappe/frappe/init.py”, line 225, in get_site_config
config.update(get_file_json(site_config))
File “/home/anshul/frappe-bench/apps/frappe/frappe/init.py”, line 1043, in get_file_json
return json.load(f)
File “/usr/lib/python3.6/json/init.py”, line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “/usr/lib/python3.6/json/init.py”, line 354, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.6/json/decoder.py”, line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.6/json/decoder.py”, line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ‘,’ delimiter: line 3 column 2 (char 24)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 72, in getattr
return self.storage[self.ident_func()][name]
KeyError: ‘conf’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 309, in _get_current_object
return getattr(self.__local, self.name)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 74, in getattr
raise AttributeError(name)
AttributeError: conf
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/anshul/frappe-bench/apps/frappe/frappe/middlewares.py”, line 16, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py”, line 220, in call
return self.app(environ, start_response)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py”, line 220, in call
return self.app(environ, start_response)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 231, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/wrappers/base_request.py”, line 237, in application
resp = f(*args[:-2] + (request,))
File “/home/anshul/frappe-bench/apps/frappe/frappe/app.py”, line 88, in application
response = handle_exception(e)
File “/home/anshul/frappe-bench/apps/frappe/frappe/app.py”, line 236, in handle_exception
make_error_snapshot(e)
File “/home/anshul/frappe-bench/apps/frappe/frappe/utils/error.py”, line 21, in make_error_snapshot
if frappe.conf.disable_error_snapshot:
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 348, in getattr
return getattr(self._get_current_object(), name)
File “/home/anshul/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py”, line 311, in _get_current_object
raise RuntimeError(“no object bound to %s” % self.name)
RuntimeError: no object bound to conf
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the “Traceback” headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that’s known about the object