Skip to content

Conversation

@rnegron
Copy link
Contributor

@rnegron rnegron commented Nov 23, 2018

This is a potential solution to the issues popping up when drf-tracking (running in Python 3) gets binary data which is encoded in something other than UTF-8. See #125.

The idea is just to ignore errors in the decoding process... Personally, I don't think drf-tracking should crash the stack just because it can't log the request. Luckily, in this case, just a keyword argument to the bytes.decode() function works... Instead of errors='replace', it could also be errors='ignore'.

For issue #129 which is a Python 2 problem (since UTF-8 is the default in Python 3), we can combine this commit with PR #130.

@rnegron
Copy link
Contributor Author

rnegron commented Nov 24, 2018

Another fix is also PR #131

@avelis avelis merged commit 1910f41 into aschn:master Nov 26, 2018
@avelis
Copy link
Collaborator

avelis commented Nov 26, 2018

@rnegron Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants