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

Unmatched ''"' when when decoding 'string' #9

Closed
almet opened this issue May 29, 2020 · 2 comments
Closed

Unmatched ''"' when when decoding 'string' #9

almet opened this issue May 29, 2020 · 2 comments

Comments

@almet
Copy link
Owner

almet commented May 29, 2020

I have a bug on a fresh install when I try to login. This is when using python 3.8.2.

Traceback (most recent call last):
  File "/workspace/.pip-modules/lib/python3.8/site-packages/roll/__init__.py", line 60, in __call__
    await handler(request, response, **request.route.vars)
  File "/workspace/copanier/copanier/views/login.py", line 38, in connexion
    response.html("login.html")
  File "/workspace/copanier/copanier/views/core.py", line 29, in html
    self.body = self.render_template(template_name, *args, **kwargs)
  File "/workspace/copanier/copanier/views/core.py", line 23, in render_template
    context["message"] = json.loads(self.request.cookies["message"])
ValueError: Unmatched ''"' when when decoding 'string'
@almet
Copy link
Owner Author

almet commented Nov 25, 2020

I couldn't reproduce, but one easy way to mitigate this would be to just display an error, or in this case maybe just swallow it and put something in the developer console, rather than making all the app error out.

@almet
Copy link
Owner Author

almet commented Nov 26, 2020

Fixed in ff58fe9

@almet almet closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant