aschn / drf-tracking

Utils to track requests to Django Rest Framework API views
http://drf-tracking.readthedocs.org/
ISC License
366 stars 95 forks source link

switch decode source encoding from ascii to utf-8 #130

Open freddez opened 5 years ago

freddez commented 5 years ago

UnicodeDecodeError fix on python 2.7 / django 1.11 #129

Tested with Python 2.7.15 / Django 1.11.16 and Python 2.3.7 / Django 2.1.3

mrdaliri commented 5 years ago

Could you please update it with latest master branch? Another parameter (errors='replace') has been added to data.decode().

martync commented 4 years ago

Hi ! I was wondering if there's something blocking this pull-request. I saw a pyFlake error on travis , how can I help ?

avelis commented 4 years ago

@martync Fix the pyFlake would help here I think. It also has merge conflicts.

martync commented 4 years ago

I can't reproduce this error at home nor on travis : tests/test_mixins.py:385:13: E117 over-indented

I have another failure that concerns pypi (which is normal) : https://github.com/martync/drf-tracking/commits/master but no pyflake errors here 🤔

@avelis can you re-trigger this travis build ? If it still fails, I'll make a pull request from my repo

avelis commented 4 years ago

@martync I restarted it. You can follow its progress here: https://travis-ci.org/aschn/drf-tracking/builds/531659171

martync commented 4 years ago

Hi @avelis any chance you have time to create a new release with this fix ?

avelis commented 4 years ago

@martync I can try and take a look after the holiday break.

avelis commented 4 years ago

@martync This needs a rebase in order to be merged.