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

令牌错误 #30

Open
An-Jhon opened this issue Aug 2, 2022 · 3 comments
Open

令牌错误 #30

An-Jhon opened this issue Aug 2, 2022 · 3 comments

Comments

@An-Jhon
Copy link

An-Jhon commented Aug 2, 2022

ParseError: Unexpected token < in JSON at
position 0 in "http://fanyi.youdao.com/
openapi.do":

@An-Jhon
Copy link
Author

An-Jhon commented Aug 2, 2022

image

@xudaolong
Copy link
Owner

@An-Jhon
image

@peiqianggao
Copy link

@xudaolong MacOS Monterey 12.4,Node 17.3.0 使用报错了, 请问是版本问题吗?

[16:04:50.558] Logging Started...
[16:04:54.789] CodeVar[Script Filter] Queuing argument 't'
[16:04:54.841] CodeVar[Script Filter] Queuing argument 'te'
[16:04:55.036] CodeVar[Script Filter] Queuing argument 'tes'
[16:04:55.107] CodeVar[Script Filter] Queuing argument 'test'
[16:04:55.300] CodeVar[Script Filter] Script with argv '(null)' finished
[16:04:55.301] ERROR: CodeVar[Script Filter] Code 1: {
"items": [
{
"title": "ParseError: Unexpected token < in JSON at position 0 in "http://fanyi.youdao.com/openapi.do": \n\n\n\n <meta http-equiv="Content-Type" content="te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)",
"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
"valid": false,
"text": {
"copy": "\nParseError: Unexpected token < in JSON at position 0 in \"http://fanyi.youdao.com/openapi.do\": \n<!DOCTYPE html>\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n\n\n-\nCodeVar undefined\nAlfred 4.6.6\ndarwin x64 21.5.0",
"largetype": "ParseError: Unexpected token < in JSON at position 0 in "http://fanyi.youdao.com/openapi.do": \n\n\n\n <meta http-equiv="Content-Type" content="te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
},
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
[16:04:55.712] CodeVar[Script Filter] Script with argv '(null)' finished
[16:04:55.713] ERROR: CodeVar[Script Filter] Code 1: {
"items": [
{
"title": "ParseError: Unexpected token < in JSON at position 0 in "http://fanyi.youdao.com/openapi.do": \n\n\n\n <meta http-equiv="Content-Type" content="te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)",
"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
"valid": false,
"text": {
"copy": "\nParseError: Unexpected token < in JSON at position 0 in \"http://fanyi.youdao.com/openapi.do\": \n<!DOCTYPE html>\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n\n\n-\nCodeVar undefined\nAlfred 4.6.6\ndarwin x64 21.5.0",
"largetype": "ParseError: Unexpected token < in JSON at position 0 in "http://fanyi.youdao.com/openapi.do": \n\n\n\n <meta http-equiv="Content-Type" content="te...\n at /Users/gaopq/install/config/alfred/Alfred.alfredpreferences/workflows/user.workflow.08DE37A2-783E-4ACE-A8FC-2A9FA5CF939B/node_modules/got/index.js:118:14\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
},
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}

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

3 participants