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

AttributeError: 'UnicodeDecodeError' object has no attribute 'message' #87

Open
41WhiteElephants opened this issue Jan 30, 2024 · 1 comment

Comments

@41WhiteElephants
Copy link

41WhiteElephants commented Jan 30, 2024

In FIDO2.py there's wrong code raising exception in exception handling block
image

Current:
image

Expected:

return HttpResponse(
            simplejson.dumps({"status": "ERR", "message": str(exp)}),
            content_type="application/json",
            status=400
        )

Steps to reproduce:
call fido2_complete_auth endpoint with some random bytes encoded into payload before cbor.encode call

@mkalioby
Copy link
Owner

Sorry, just saw this, you can add it to your PR.

Thanks

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

2 participants