ERPNext Conference 2019* ERPNext.com Blog

Problem to attach file after update


#1

some user when want to attach file to documents get this error after update erpnext to last version
current version
ERPNext: v11.1.18 (master)

Frappe Framework: v11.1.18 (master)

any one know whats problem ? nothing change in access just after update erp this problem happened .

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1027, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 125, in uploadfile
frappe.errprint(frappe.utils.get_traceback())
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 277, in errprint
error_log.append({“exc”: msg, “locals”: get_frame_locals()})
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py”, line 211, in get_frame_locals
_locals.append(‘File “{}”, line {}, in {}\n{}’.format(filename, lineno, function, json.dumps(frame.f_locals, default=str, indent=4)))
File “/usr/lib/python2.7/json/init.py”, line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File “/usr/lib/python2.7/json/encoder.py”, line 209, in encode
chunks = list(chunks)
File “/usr/lib/python2.7/json/encoder.py”, line 434, in _iterencode
for chunk in _iterencode_dict(o, _current_indent_level):
File “/usr/lib/python2.7/json/encoder.py”, line 390, in _iterencode_dict
yield _encoder(value)
UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0x82 in position 16: invalid start byte


New Update has caused some attachment unreadable - 404 not found
Unable to open attachment in Mobile App