{"action":"created","issue":{"url":"https://api.github.com/repos/pyload/pyload/issues/2281","labels_url":"https://api.github.com/repos/pyload/pyload/issues/2281/labels{/name}","comments_url":"https://api.github.com/repos/pyload/pyload/issues/2281/comments","events_url":"https://api.github.com/repos/pyload/pyload/issues/2281/events","html_url":"https://github.com/pyload/pyload/issues/2281","id":125830231,"number":2281,"title":"Summarize utf8 error","user":{"login":"nordic-style","id":11313330,"avatar_url":"https://avatars.githubusercontent.com/u/11313330?v=3","gravatar_id":"","url":"https://api.github.com/users/nordic-style","html_url":"https://github.com/nordic-style","followers_url":"https://api.github.com/users/nordic-style/followers","following_url":"https://api.github.com/users/nordic-style/following{/other_user}","gists_url":"https://api.github.com/users/nordic-style/gists{/gist_id}","starred_url":"https://api.github.com/users/nordic-style/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nordic-style/subscriptions","organizations_url":"https://api.github.com/users/nordic-style/orgs","repos_url":"https://api.github.com/users/nordic-style/repos","events_url":"https://api.github.com/users/nordic-style/events{/privacy}","received_events_url":"https://api.github.com/users/nordic-style/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyload/pyload/labels/plugin%20issue","name":"plugin issue","color":"eb6420"},{"url":"https://api.github.com/repos/pyload/pyload/labels/waiting%20feedback","name":"waiting feedback","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-10T16:45:06Z","updated_at":"2016-01-10T19:35:08Z","closed_at":null,"body":"Since this is a relative new error and it would be great if this is fixed i will write a more detailed error description with some naive assumptions.\r\n\r\nFor me this only happens with links to uploaded.to. Shareonline.biz is fine and i don't see any errors of this kind with shareonline. I am using premium accounts with both of them.\r\n\r\nWhat does happen:\r\nI add a dlc to pyload and pyload starts downloading files. After some time i get the error:\r\n\r\nfailed'utf8' codec can't decode byte 0xff in position 0: invalid start byte 150.00 MiBUploadedTo\r\n\r\nThis only happens for some downloads and it actually does not download anything. In the case of this error i press the \"restart link\" button and i get this state:\r\n\r\nqueued'utf8' codec can't decode byte 0xff in position 0: invalid start byte 150.00 MiBUploadedTo\r\n\r\nWithin some secondons pyload starts downloading the file. The next state is: \r\n\r\nfinished 150.00 MiBUploadedTo\r\n\r\nAnd everything is fine.\r\n\r\nThis brings me to two options:\r\nA) pyload has some kind of race condition that randomly creates this error\r\n\r\nB) uploaded.to answers are broken and pyload cannot handle these answers.\r\n\r\nIn both cases a workaround would be possible: If this happens the first time for this link just restart the link. For the first option this would be a bad workaround - for the second option this would be a valid patch until uploaded fixes their software.\r\n\r\nDebug log:\r\n\r\n```\r\n10.01.2016 17:26:32 WARNING   Download failed: Ob20GeDTDL10BlAVRePa37152.part138.rar | 'utf8' codec can't decode byte 0xff in position 0: invalid start byte\r\nTraceback (most recent call last):\r\n  File \"/data/media/bin/pyload/stable/module/PluginThread.py\", line 187, in run\r\n    pyfile.plugin.preprocessing(self)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/Base.py\", line 290, in preprocessing\r\n    return self._process(*args, **kwargs)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/Hoster.py\", line 118, in _process\r\n    self.process(self.pyfile)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/SimpleHoster.py\", line 283, in process\r\n    self.handle_free(pyfile)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/hoster/UploadedTo.py\", line 79, in handle_free\r\n    response, challenge = self.captcha.challenge()\r\n  File \"/data/media/bin/pyload/stable/module/plugins/captcha/ReCaptcha.py\", line 50, in challenge\r\n    version=2 if re.search(self.KEY_V2_PATTERN, data or self.retrieve_data()) else 1)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/captcha/ReCaptcha.py\", line 46, in challenge\r\n    return getattr(self, \"_challenge_v%s\" % version)(key)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/captcha/ReCaptcha.py\", line 65, in _challenge_v1\r\n    return self.result(server, challenge, key)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/captcha/ReCaptcha.py\", line 86, in result\r\n    input_type=\"jpg\")\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/Captcha.py\", line 46, in decrypt\r\n    img = self.load(url, get=get, post=post, ref=ref, cookies=cookies, decode=False, req=req or self.pyfile.plugin.req)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/Plugin.py\", line 221, in load\r\n    self.dump_html()\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/Plugin.py\", line 246, in dump_html\r\n    f.write(encode(self.last_html))\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/misc.py\", line 388, in encode\r\n    res = transcode(value, decoding, encoding)\r\n  File \"/data/media/bin/pyload/stable/module/plugins/internal/misc.py\", line 373, in transcode\r\n    return value.decode(decoding).encode(encoding)\r\n  File \"/usr/lib/python2.7/encodings/utf_8.py\", line 16, in decode\r\n    return codecs.utf_8_decode(input, errors, True)\r\nUnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pyload/pyload/issues/comments/170384099","html_url":"https://github.com/pyload/pyload/issues/2281#issuecomment-170384099","issue_url":"https://api.github.com/repos/pyload/pyload/issues/2281","id":170384099,"user":{"login":"GammaC0de","id":11036551,"avatar_url":"https://avatars.githubusercontent.com/u/11036551?v=3","gravatar_id":"","url":"https://api.github.com/users/GammaC0de","html_url":"https://github.com/GammaC0de","followers_url":"https://api.github.com/users/GammaC0de/followers","following_url":"https://api.github.com/users/GammaC0de/following{/other_user}","gists_url":"https://api.github.com/users/GammaC0de/gists{/gist_id}","starred_url":"https://api.github.com/users/GammaC0de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GammaC0de/subscriptions","organizations_url":"https://api.github.com/users/GammaC0de/orgs","repos_url":"https://api.github.com/users/GammaC0de/repos","events_url":"https://api.github.com/users/GammaC0de/events{/privacy}","received_events_url":"https://api.github.com/users/GammaC0de/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T19:35:08Z","updated_at":"2016-01-10T19:35:08Z","body":"Debug log please"}}