{"action":"opened","issue":{"url":"https://api.github.com/repos/Kinto/kinto/issues/288","labels_url":"https://api.github.com/repos/Kinto/kinto/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/Kinto/kinto/issues/288/comments","events_url":"https://api.github.com/repos/Kinto/kinto/issues/288/events","html_url":"https://github.com/Kinto/kinto/issues/288","id":118032411,"number":288,"title":"AttributeError: 'bytes' object has no attribute 'encode'","user":{"login":"tarekziade","id":250019,"avatar_url":"https://avatars.githubusercontent.com/u/250019?v=3","gravatar_id":"","url":"https://api.github.com/users/tarekziade","html_url":"https://github.com/tarekziade","followers_url":"https://api.github.com/users/tarekziade/followers","following_url":"https://api.github.com/users/tarekziade/following{/other_user}","gists_url":"https://api.github.com/users/tarekziade/gists{/gist_id}","starred_url":"https://api.github.com/users/tarekziade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarekziade/subscriptions","organizations_url":"https://api.github.com/users/tarekziade/orgs","repos_url":"https://api.github.com/users/tarekziade/repos","events_url":"https://api.github.com/users/tarekziade/events{/privacy}","received_events_url":"https://api.github.com/users/tarekziade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kinto/kinto/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-20T12:32:04Z","updated_at":"2015-11-20T12:32:04Z","closed_at":null,"body":"On Master, python 3.4, running xml2kinto to add some data, on a redis storage\r\n\r\n```bash\r\n$ make serve\r\n.venv/bin/kinto --ini config/kinto.ini migrate\r\n.venv/bin/kinto --ini config/kinto.ini start\r\nStarting subprocess with file monitor\r\n2015-11-20 13:30:24,786 INFO  [venusian][MainThread] kinto 1.10.0.dev0 starting.\r\nStarting server in PID 42452.\r\nserving on http://0.0.0.0:8888\r\n2015-11-20 13:30:28,263 ERROR [venusian][waitress] 'bytes' object has no attribute 'encode' exception=Traceback (most recent call last):\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/pyramid/tweens.py\", line 20, in excview_tween\r\n    response = handler(request)\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/pyramid_tm/__init__.py\", line 60, in tm_tween\r\n    userid = unauthenticated_userid(request)\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/pyramid/security.py\", line 94, in unauthenticated_userid\r\n    return request.unauthenticated_userid\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/pyramid/security.py\", line 361, in unauthenticated_userid\r\n    return policy.unauthenticated_userid(self)\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/pyramid_multiauth/__init__.py\", line 98, in unauthenticated_userid\r\n    userid = policy.unauthenticated_userid(request)\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/cliquet/authentication.py\", line 31, in unauthenticated_userid\r\n    userid = utils.hmac_digest(hmac_secret, credentials)\r\n  File \"/Users/tarek/Dev/github.com/kinto/.venv/lib/python3.4/site-packages/cliquet/utils.py\", line 135, in hmac_digest\r\n    hashlib.sha256).hexdigest()\r\nAttributeError: 'bytes' object has no attribute 'encode'\r\n2015-11-20 13:30:28,264 INFO  [venusian][waitress] request.summary time=2015-11-20T13:30:28.263999; errno=999\r\n```"}}