Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Translate API causes to error when adding a word to Anki #9

Open
ttuygun opened this issue Apr 10, 2019 · 2 comments
Open

Google Translate API causes to error when adding a word to Anki #9

ttuygun opened this issue Apr 10, 2019 · 2 comments

Comments

@ttuygun
Copy link

ttuygun commented Apr 10, 2019

[2019-04-10 15:01:16][utility.junction] Processing output of 'utility.filter' with arg '{
	"items": [
		{
			"title": "Error\n    at /usr/local/lib/node_modules/alfred-ldoce/node_modules/google-translate-api/index.js:105:17\n    at processTicksAndRejections (internal/process/task_queues.js:86:5)",
			"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
			"valid": false,
			"text": {
				"copy": "```\nError\n    at /usr/local/lib/node_modules/alfred-ldoce/node_modules/google-translate-api/index.js:105:17\n```\n\n-\nldoce-Express 1.3.9\nAlfred 3.8.1\ndarwin x64 18.5.0",
				"largetype": "Error\n    at /usr/local/lib/node_modules/alfred-ldoce/node_modules/google-translate-api/index.js:105:17"
			},
			"icon": {
				"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
			}
		}
	]
}
@ttuygun ttuygun changed the title Sound files causes fail to add word to Anki Google Translate API causes to error when adding a word to Anki Apr 10, 2019
@bikenik
Copy link
Owner

bikenik commented Apr 11, 2019

Google tightened the restrictions and now from a single IP address can make very few queries, and blocks the translate requests for. The workflow might translate for you on a different internet connection.

This is a common issue:
Alfred Forum
GitHub (matheuss/google-translate-api): BAD_REQUEST response
GitHub (matheuss/google-translate-api):BAD_NETWORK

Someone resolving this with the proxy. I'm using a VPN, so I avoid this issue, just by triggering another IP. I can't resolve this issue at the moment. Hope you'll find some solution by the links above.

@ttuygun
Copy link
Author

ttuygun commented May 26, 2019

I tried several hosts but none of them works with it. I think this feature can be optional or must be work without throwing an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants