{"action":"created","issue":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/114","repository_url":"https://api.github.com/repos/beniz/deepdetect","labels_url":"https://api.github.com/repos/beniz/deepdetect/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/beniz/deepdetect/issues/114/comments","events_url":"https://api.github.com/repos/beniz/deepdetect/issues/114/events","html_url":"https://github.com/beniz/deepdetect/issues/114","id":152535434,"number":114,"title":"Python client unicode decoding error at prediction time","user":{"login":"Isaacpm","id":7570526,"avatar_url":"https://avatars.githubusercontent.com/u/7570526?v=3","gravatar_id":"","url":"https://api.github.com/users/Isaacpm","html_url":"https://github.com/Isaacpm","followers_url":"https://api.github.com/users/Isaacpm/followers","following_url":"https://api.github.com/users/Isaacpm/following{/other_user}","gists_url":"https://api.github.com/users/Isaacpm/gists{/gist_id}","starred_url":"https://api.github.com/users/Isaacpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isaacpm/subscriptions","organizations_url":"https://api.github.com/users/Isaacpm/orgs","repos_url":"https://api.github.com/users/Isaacpm/repos","events_url":"https://api.github.com/users/Isaacpm/events{/privacy}","received_events_url":"https://api.github.com/users/Isaacpm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beniz/deepdetect/labels/python","name":"python","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-02T11:27:03Z","updated_at":"2016-05-30T14:54:21Z","closed_at":"2016-05-30T14:54:21Z","body":"Hi,\r\n\r\nI'm getting the following error when predicting from txt files:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/var/models/dboard/dd_client.py\", line 230, in post\r\n    return self.__return_format(data)\r\n  File \"/var/models/dboard/dd_client.py\", line 140, in __return_format\r\n    return json.loads(js.decode('utf-8'))\r\nUnicodeDecodeError: 'utf-8' codec can't decode bytes in position 86-87: invalid continuation byte\r\n\r\nTraceback (most recent call last):\r\n  File \"/var/models/dboard/dd_client.py\", line 230, in post\r\n    return self.__return_format(data)\r\n  File \"/var/models/dboard/dd_client.py\", line 140, in __return_format\r\n    return json.loads(js.decode('utf-8'))\r\nUnicodeDecodeError: 'utf-8' codec can't decode bytes in position 86-87: invalid continuation byte\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/var/models/dboard/dd_client.py\", line 372, in post_predict\r\n    return self.post(self.__urls[\"predict\"],json.dumps(body))\r\n  File \"/var/models/dboard/dd_client.py\", line 235, in post\r\n    raise DDDataError(u,\"POST\",headers,body,data)\r\n```\r\n\r\nIt seems to be random, and not sure if it's because of the content of the text file passed to the prediction.\r\nI'm running a script that predicts based on a pool of 7 models, it predicts each text file with model 1, then model 2, etc....\r\nIt does it one after the other and all the data is the same for all seven models at each prediction iteration.\r\nThe same file works fine some times but fails others and the same file will work on some of the models before failing.\r\nAny ideas of where should I check that encoding?\r\n\r\nThanks,\r\nIsaac"},"comment":{"url":"https://api.github.com/repos/beniz/deepdetect/issues/comments/222508973","html_url":"https://github.com/beniz/deepdetect/issues/114#issuecomment-222508973","issue_url":"https://api.github.com/repos/beniz/deepdetect/issues/114","id":222508973,"user":{"login":"Isaacpm","id":7570526,"avatar_url":"https://avatars.githubusercontent.com/u/7570526?v=3","gravatar_id":"","url":"https://api.github.com/users/Isaacpm","html_url":"https://github.com/Isaacpm","followers_url":"https://api.github.com/users/Isaacpm/followers","following_url":"https://api.github.com/users/Isaacpm/following{/other_user}","gists_url":"https://api.github.com/users/Isaacpm/gists{/gist_id}","starred_url":"https://api.github.com/users/Isaacpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isaacpm/subscriptions","organizations_url":"https://api.github.com/users/Isaacpm/orgs","repos_url":"https://api.github.com/users/Isaacpm/repos","events_url":"https://api.github.com/users/Isaacpm/events{/privacy}","received_events_url":"https://api.github.com/users/Isaacpm/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T14:54:21Z","updated_at":"2016-05-30T14:54:21Z","body":"It doesn't look like I can reproduce it, I'm closing the issue and if it happens again in the future I'll open it back"}}
{"actor":{"display_login":"Isaacpm"}}