{"action":"created","issue":{"url":"https://api.github.com/repos/mouuff/mtranslate/issues/9","repository_url":"https://api.github.com/repos/mouuff/mtranslate","labels_url":"https://api.github.com/repos/mouuff/mtranslate/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mouuff/mtranslate/issues/9/comments","events_url":"https://api.github.com/repos/mouuff/mtranslate/issues/9/events","html_url":"https://github.com/mouuff/mtranslate/issues/9","id":191399092,"number":9,"title":"Gives me an error after 266 translations","user":{"login":"eoehri","id":15195053,"avatar_url":"https://avatars.githubusercontent.com/u/15195053?v=3","gravatar_id":"","url":"https://api.github.com/users/eoehri","html_url":"https://github.com/eoehri","followers_url":"https://api.github.com/users/eoehri/followers","following_url":"https://api.github.com/users/eoehri/following{/other_user}","gists_url":"https://api.github.com/users/eoehri/gists{/gist_id}","starred_url":"https://api.github.com/users/eoehri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoehri/subscriptions","organizations_url":"https://api.github.com/users/eoehri/orgs","repos_url":"https://api.github.com/users/eoehri/repos","events_url":"https://api.github.com/users/eoehri/events{/privacy}","received_events_url":"https://api.github.com/users/eoehri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-23T23:05:57Z","updated_at":"2016-11-28T08:29:09Z","closed_at":null,"body":"After 266 translation calls (in a for-loop) I get always the following error (it's always exactly 266). Do you know why?\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/username/PycharmProjects/Translation/GoogleTranslator.py\", line 52, in <module>\r\n    review_trans = translate(review, 'en')\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/mtranslate/core.py\", line 70, in translate\r\n    page = urllib.request.urlopen(request).read().decode(\"utf-8\")\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 163, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 472, in open\r\n    response = meth(req, response)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 582, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 510, in error\r\n    return self._call_chain(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 444, in _call_chain\r\n    result = func(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py\", line 590, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\nurllib.error.HTTPError: HTTP Error 400: Bad Request\r\n```"},"comment":{"url":"https://api.github.com/repos/mouuff/mtranslate/issues/comments/263210637","html_url":"https://github.com/mouuff/mtranslate/issues/9#issuecomment-263210637","issue_url":"https://api.github.com/repos/mouuff/mtranslate/issues/9","id":263210637,"user":{"login":"mouuff","id":1174730,"avatar_url":"https://avatars.githubusercontent.com/u/1174730?v=3","gravatar_id":"","url":"https://api.github.com/users/mouuff","html_url":"https://github.com/mouuff","followers_url":"https://api.github.com/users/mouuff/followers","following_url":"https://api.github.com/users/mouuff/following{/other_user}","gists_url":"https://api.github.com/users/mouuff/gists{/gist_id}","starred_url":"https://api.github.com/users/mouuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouuff/subscriptions","organizations_url":"https://api.github.com/users/mouuff/orgs","repos_url":"https://api.github.com/users/mouuff/repos","events_url":"https://api.github.com/users/mouuff/events{/privacy}","received_events_url":"https://api.github.com/users/mouuff/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T08:29:09Z","updated_at":"2016-11-28T08:29:09Z","body":"I believe the request is too long,\r\nit works while splitting your request, I m looking into it"}}
{"actor":{"display_login":"mouuff"}}