You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to integrate and embed a metabase dashboard in ERPNext, following error is outputted in trying to open the page afterwards "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte".
Follow the tutorial to set up metabase integration in a ERPNext page
Open the page afterwards
The error will occur
Observed result
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte
Expected result
Dashboard embedded
Stacktrace / full error message
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1172, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/desk_page.py", line 32, in getpage
doc = get(page)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/desk_page.py", line 15, in get
page.load_assets()
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/page/page.py", line 113, in load_assets
self.script = render_include(f.read())
File "/home/frappe/frappe-bench/env/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte
/socket.io/?EIO=3&transport=polling&t=NgDWDmv:1 Failed to load resource: the server responded with a status of 502 (Bad Gateway)
Additional information
OS version / distribution, ERPNext install method, etc.
The text was updated successfully, but these errors were encountered:
arahimfahim40
changed the title
Bug in integration of metabase
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte
Jul 9, 2021
If this is part custom metabase_integration then the issue should be opened in the relevant repo.
If it's related to core request handling then frappe/frappe.
In any case, this issue doesn't belong in erpnext repo.
Description of the issue
When trying to integrate and embed a metabase dashboard in ERPNext, following error is outputted in trying to open the page afterwards "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte".
Context information (for bug reports)
I was following this link
Output of
bench version
Steps to reproduce the issue
Observed result
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte
Expected result
Dashboard embedded
Stacktrace / full error message
Additional information
OS version / distribution,
ERPNext
install method, etc.The text was updated successfully, but these errors were encountered: