{"action":"created","issue":{"url":"https://api.github.com/repos/matheuss/google-translate-api/issues/11","repository_url":"https://api.github.com/repos/matheuss/google-translate-api","labels_url":"https://api.github.com/repos/matheuss/google-translate-api/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/matheuss/google-translate-api/issues/11/comments","events_url":"https://api.github.com/repos/matheuss/google-translate-api/issues/11/events","html_url":"https://github.com/matheuss/google-translate-api/issues/11","id":219682357,"node_id":"MDU6SXNzdWUyMTk2ODIzNTc=","number":11,"title":"BAD_NETWORK","user":{"login":"dragonfire535","id":25068075,"node_id":"MDQ6VXNlcjI1MDY4MDc1","avatar_url":"https://avatars2.githubusercontent.com/u/25068075?v=4","gravatar_id":"","url":"https://api.github.com/users/dragonfire535","html_url":"https://github.com/dragonfire535","followers_url":"https://api.github.com/users/dragonfire535/followers","following_url":"https://api.github.com/users/dragonfire535/following{/other_user}","gists_url":"https://api.github.com/users/dragonfire535/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonfire535/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonfire535/subscriptions","organizations_url":"https://api.github.com/users/dragonfire535/orgs","repos_url":"https://api.github.com/users/dragonfire535/repos","events_url":"https://api.github.com/users/dragonfire535/events{/privacy}","received_events_url":"https://api.github.com/users/dragonfire535/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-04-05T18:58:41Z","updated_at":"2018-09-24T19:36:02Z","closed_at":"2017-06-27T20:56:17Z","author_association":"NONE","body":"{ Error\r\n     at /app/node_modules/google-translate-api/index.js:105:17\r\n     at process._tickCallback (internal/process/next_tick.js:109:7) code: 'BAD_NETWORK' }\r\n\r\nThis occurs at every translation request."},"comment":{"url":"https://api.github.com/repos/matheuss/google-translate-api/issues/comments/424098103","html_url":"https://github.com/matheuss/google-translate-api/issues/11#issuecomment-424098103","issue_url":"https://api.github.com/repos/matheuss/google-translate-api/issues/11","id":424098103,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDA5ODEwMw==","user":{"login":"extensionsapp","id":8192379,"node_id":"MDQ6VXNlcjgxOTIzNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/8192379?v=4","gravatar_id":"","url":"https://api.github.com/users/extensionsapp","html_url":"https://github.com/extensionsapp","followers_url":"https://api.github.com/users/extensionsapp/followers","following_url":"https://api.github.com/users/extensionsapp/following{/other_user}","gists_url":"https://api.github.com/users/extensionsapp/gists{/gist_id}","starred_url":"https://api.github.com/users/extensionsapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extensionsapp/subscriptions","organizations_url":"https://api.github.com/users/extensionsapp/orgs","repos_url":"https://api.github.com/users/extensionsapp/repos","events_url":"https://api.github.com/users/extensionsapp/events{/privacy}","received_events_url":"https://api.github.com/users/extensionsapp/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T19:36:02Z","updated_at":"2018-09-24T19:36:02Z","author_association":"NONE","body":"Hey.\r\nGoogle tightened the restrictions and now from a single IP address can make very few queries.\r\nI added the use of a proxy server (IPv4, IPv6). Maybe my solution will help you.\r\n\r\nhttps://github.com/extensionsapp/translatte\r\n\r\n```javascript\r\nconst translatte = require('translatte');\r\n\r\n// Translate string to English using proxy\r\ntranslatte('Вы говорите на русском?', {\r\n    from: 'ru',\r\n    to: 'en',\r\n    agents: [\r\n        'Mozilla/5.0 (Windows NT 10.0; ...',\r\n        'Mozilla/4.0 (Windows NT 10.0; ...',\r\n        'Mozilla/5.0 (Windows NT 10.0; ...'\r\n    ],\r\n    proxies: [\r\n        'LOGIN:PASSWORD@192.0.2.100:12345',\r\n        'LOGIN:PASSWORD@192.0.2.200:54321'\r\n    ]\r\n}).then(res => {\r\n    console.log(res);\r\n}).catch(err => {\r\n    console.error(err);\r\n});\r\n// { text: 'Do you speak Russian?', \r\n//   from: { \r\n//     language: { \r\n//       didYouMean: false, \r\n//       iso: 'ru' \r\n//     }, \r\n//     text: { \r\n//       autoCorrected: false, \r\n//       value: '', \r\n//       didYouMean: false \r\n//     } \r\n//   },\r\n//   raw: '' }\r\n```"}}
{"actor":{"display_login":"extensionsapp"}}