Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"UnicodeDecodeError: 'utf-8' codec..." page can't be opened #13695

Closed
arahimfahim40 opened this issue Jul 13, 2021 · 2 comments
Closed

"UnicodeDecodeError: 'utf-8' codec..." page can't be opened #13695

arahimfahim40 opened this issue Jul 13, 2021 · 2 comments
Labels

Comments

@arahimfahim40
Copy link

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". This works fine without a problem in V12.

Context information (for bug reports)

Output of bench version
I was following this link
Output of bench version

erpnext 13.6.0
erpnext_helper 0.0.1
erpnext_shipping 0.0.1
frappe 13.6.0
metabase_integration 0.0.1
shippmentservice 0.0.1

Steps to reproduce the issue

  1. Follow this tutorial to set up metabase integration in an ERPNext metabase_integration app
    2.Open the page or afterwards
  2. The error will occur

Observed result

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 187: invalid start byte

Expected result

Dashboard or page embed

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, Frappe install method, etc.

@arahimfahim40
Copy link
Author

Any update as to why guys?

@surajshetty3416
Copy link
Member

Looks like an issue with the Metabase app.

Please continue to track it here.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants