\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<!DOCTYPE html>\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<!DOCTYPE html>\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<!DOCTYPE html>\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"
}
}
]
}
ParseError: Unexpected token < in JSON at position 0 in "http://fanyi.youdao.com/ openapi.do": <!DOCTYPE html>
@An-Jhon
@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<!DOCTYPE html>\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<!DOCTYPE html>\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<!DOCTYPE html>\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<!DOCTYPE html>\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" } } ] }