{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3610","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3610/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3610/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3610/events","html_url":"https://github.com/celery/celery/issues/3610","id":190484179,"number":3610,"title":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte","user":{"login":"631068264","id":8144089,"avatar_url":"https://avatars.githubusercontent.com/u/8144089?v=3","gravatar_id":"","url":"https://api.github.com/users/631068264","html_url":"https://github.com/631068264","followers_url":"https://api.github.com/users/631068264/followers","following_url":"https://api.github.com/users/631068264/following{/other_user}","gists_url":"https://api.github.com/users/631068264/gists{/gist_id}","starred_url":"https://api.github.com/users/631068264/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/631068264/subscriptions","organizations_url":"https://api.github.com/users/631068264/orgs","repos_url":"https://api.github.com/users/631068264/repos","events_url":"https://api.github.com/users/631068264/events{/privacy}","received_events_url":"https://api.github.com/users/631068264/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-19T08:18:38Z","updated_at":"2016-12-01T20:07:12Z","closed_at":null,"body":"## Checklist\r\n\r\n- [x] I have included the output of ``celery -A proj report`` in the issue.\r\n      (if you are not able to do this, then at least specify the Celery\r\n       version affected).\r\n- [x] I have verified that the issue exists against the `master` branch of Celery.\r\n\r\n## Steps to reproduce\r\nI pass bytes as arguments to the Task.apply_async .\r\n## Expected behavior\r\nThe method can run well without celery.\r\n## Actual behavior\r\n```\r\nERROR:tornado.application:Uncaught exception POST /remind/attach (::1)\r\nHTTPServerRequest(protocol='http', host='localhost:8888', method='POST', uri='/remind/attach', version='HTTP/1.1', remote_ip='::1', headers={'Connection': 'keep-alive', 'Host': 'localhost:8888', 'Accept': '*/*', 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary1zaaikeIw3OZ3NhZ', 'Content-Length': '238563', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36', 'Origin': 'chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'zh-CN,zh;q=0.8,en;q=0.6', 'Cookie': 'mycookie=\"2|1:0|10:1479045911|8:mycookie|12:bXl2YWx1ZQ==|1c47f1a1a0334de0e5925a35b60553ebce26d9b4b5a827084e4885cd71e87f11\"; _xsrf=2|defc4914|2ce434854c6043409d70466f38bac48d|1479290906'})\r\nTraceback (most recent call last):\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/tornado/web.py\", line 1469, in _execute\r\n    result = yield result\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/tornado/gen.py\", line 1015, in run\r\n    value = future.result()\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/tornado/concurrent.py\", line 237, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"<string>\", line 3, in raise_exc_info\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/tornado/gen.py\", line 270, in wrapper\r\n    result = func(*args, **kwargs)\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/types.py\", line 243, in wrapped\r\n    coro = func(*args, **kwargs)\r\n  File \"/Users/wyx/project/message/views/remind.py\", line 98, in post\r\n    args=(to_addr, msg_type, subject, text), kwargs=kwargs)\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/celery/app/task.py\", line 536, in apply_async\r\n    **options\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/celery/app/base.py\", line 709, in send_task\r\n    root_id, parent_id, shadow, chain,\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/celery/app/amqp.py\", line 335, in as_task_v2\r\n    kwargsrepr = saferepr(kwargs, self.kwargsrepr_maxsize)\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/celery/utils/saferepr.py\", line 74, in saferepr\r\n    o, maxlen=maxlen, maxlevels=maxlevels, seen=seen\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/celery/utils/saferepr.py\", line 118, in _saferepr\r\n    val = \"b'%s'\" % (bytes_to_str(truncate_bytes(val, maxlen)),)\r\n  File \"/Users/wyx/project/message/.env/lib/python3.5/site-packages/kombu/utils/encoding.py\", line 57, in bytes_to_str\r\n    return s.decode()\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte\r\nERROR:tornado.access:500 POST /remind/attach (::1) 118245.07ms\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/264279892","html_url":"https://github.com/celery/celery/issues/3610#issuecomment-264279892","issue_url":"https://api.github.com/repos/celery/celery/issues/3610","id":264279892,"user":{"login":"ask","id":1558,"avatar_url":"https://avatars.githubusercontent.com/u/1558?v=3","gravatar_id":"","url":"https://api.github.com/users/ask","html_url":"https://github.com/ask","followers_url":"https://api.github.com/users/ask/followers","following_url":"https://api.github.com/users/ask/following{/other_user}","gists_url":"https://api.github.com/users/ask/gists{/gist_id}","starred_url":"https://api.github.com/users/ask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ask/subscriptions","organizations_url":"https://api.github.com/users/ask/orgs","repos_url":"https://api.github.com/users/ask/repos","events_url":"https://api.github.com/users/ask/events{/privacy}","received_events_url":"https://api.github.com/users/ask/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T20:07:11Z","updated_at":"2016-12-01T20:07:11Z","body":"@631068264 In your code you have:\r\n\r\n```py\r\ndef __int__(self):\r\n```\r\n\r\nnot `__init__` :)"}}
{"actor":{"display_login":"ask"}}