question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown error in <anonymous>

See original GitHub issue

Just installed alfred-polyglot@1.2.0 via NPM and I’m getting this error:

Error
    at /Users/eom/.nvm/versions/node/v8.12.0/lib/node_modules/alfred-polyglot/node_modules/google-translate-api/index.js:105:17
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

The full log from the Alfred debugger:

[2018-10-14 20:56:11][input.scriptfilter] Queuing argument ''
[2018-10-14 20:56:11][input.scriptfilter] Script with argument '' finished
[2018-10-14 20:56:11][input.scriptfilter] {
	"items": [
		{
			"title": "Translate '...'"
		}
	]
}
[2018-10-14 20:56:11][input.scriptfilter] Queuing argument 'h'
[2018-10-14 20:56:11][input.scriptfilter] Queuing argument 'he'
[2018-10-14 20:56:11][input.scriptfilter] Queuing argument 'hej'
[2018-10-14 20:56:12][input.scriptfilter] Script with argument 'hej' finished
[2018-10-14 20:56:12][input.scriptfilter] {
	"items": [
		{
			"title": "Error: ",
			"subtitle": "Activate this item to try again. | ⌘L to see the stack trace",
			"autocomplete": "",
			"icon": {
				"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
			},
			"valid": false,
			"text": {
				"largetype": "Error\n    at /Users/eom/.nvm/versions/node/v8.12.0/lib/node_modules/alfred-polyglot/node_modules/google-translate-api/index.js:105:17\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:189:7)",
				"copy": "Error\n    at /Users/eom/.nvm/versions/node/v8.12.0/lib/node_modules/alfred-polyglot/node_modules/google-translate-api/index.js:105:17\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:189:7)"
			}
		}
	]
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rsifycommented, Oct 15, 2018

Hey, thanks creating the issue - the errors you’re having might be caused by the tkk regex token used by google-translate-api having been updated for some people (the workflow still works good for me) and not being valid anymore.

There is a possible fix floating around created by @vitalets on his fork of google-translate-api which might help you.

Since I can’t reproduce the issue myself yet, before taking some real action I’ve created a temporary branch with the dependency switched to the fork which might work for you, you can install it via running the following commands:

$ npm rm -g alfred-polyglot
$ npm i -g nikersify/alfred-polyglot#tkk-fix

Please install the fork and let me know if that fixes it for you, thanks in advance! 😃

1reaction
rsifycommented, Oct 20, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown error in upload image :class anonymous class ...
The error says that AsyncHttpResponseHandler must implement the onSuccess function. Edit: After checking your, imports as commented by other ...
Read more >
Unknown(Script Error) - Rollbar Docs
This happens when your JS code is hosted on a different domain (i.e. a CDN). To fix, set. Access-Control-Allow-Origin: * on the JS...
Read more >
Issue #97418 · flutter/flutter - unknown error - GitHub
Steps to Reproduce Execute flutter run on the code sample ... ... Expected results: Actual results: Code sample Logs.
Read more >
Login after anonymous search leads to unknown error
As the topic describes: When I try to login after a topic search while I am not logged in, then the first login...
Read more >
"Unknown error! Please contact your administrator" message ...
This is usually caused by a connectivity issue between the Salesforce site and your Jira server instance. Something might be blocking the connection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found