Open kevin-lucifer opened 2 years ago
mac升级之后一直不能用,alfred已经升级到5.0.1,有道的workflow也是最近支持python3版本:有道翻译 Workflow v3.0.0
debug打出来的url在浏览器里面是能正常返回的,但日志打500错误。url就不发了,有key信息,返回结果:
{"returnPhrase":["started"],"query":"Started","errorCode":"0","l":"en2zh-CHS","tSpeakUrl":"https://openapi.youdao.com/ttsapi?q=====这部分我码掉了========= d&ttsVoiceStrict=false","web":[{"value":["打响","起家","开始","已启动"],"key":"Started"},{"value":["开始","初步洽谈","新手入门"],"key":"Getting started"},{"value":["一吻定情","爱从一个吻开始","恶作剧2吻"],"key":"It Started With a Kiss"}],"requestId":"3d6faa77-8d80-4685-b1ca-1766b165d59b","translation":["开始"],"dict":{"url":"yddict://m.youdao.com/dict?le=eng&q=Started"},"webdict":{"url":"http://mobile.youdao.com/dict?le=eng&q=Started"},"basic":{"exam_type":["高中"],"us-phonetic":"ˈstɑːrtɪd","phonetic":"ˈstɑːtɪd","uk-phonetic":"ˈstɑːtɪd","uk-speech":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&=====这部分我码掉了=========&voice=5&format=mp3&appKey======这部分我码掉了=========&ttsVoiceStrict=false","explains":["v. 使发生,开始;开动,发动(机器);创立,创始;出发,启程(start 的过去式和过去分词)"],"us-speech":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&sign======这部分我码掉了=========&ttsVoiceStrict=false"},"isWord":true,"speakUrl":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&sign======这部分我码掉了=========&salt======这部分我码掉了=========&voice=4&format=mp3&appKey======这部分我码掉了=========&ttsVoiceStrict=false"}
错误日志: 10:23:42 workflow.py:2314 DEBUG set last run version: 3.0.0 10:23:42 workflow.py:2137 DEBUG ---------- finished in 0.442s ---------- 10:23:42 connectionpool.py:948 DEBUG Starting new HTTPS connection (1): sentry.io:443 Sentry is attempting to send 2 pending error messages Waiting up to 2 seconds Press Ctrl-C to quit [10:23:44.705] Youdao[Script Filter] { "items": [ { "title": "500 \u6709\u9053\u7ffb\u8bd1\u5931\u8d25", "subtitle": "", "valid": true, "arg": "3.0.0$%$%$%EN2zh-CHS$%$%error", "icon": { "path": "icon_error.png" } } ] }
补充一下,alfred升级到5.0.1了,也不能用,报错和上面一样,工作流用的是最新版本。 能从网易拿到返回,感觉是返回格式变了,解释不出来?debug日志里没堆栈,不知道具体是哪个地方出问题。
我是先安装的5.0版本,但是突然不能用了
debug打出来的url在浏览器里面是能正常返回的,但日志打500错误。url就不发了,有key信息,返回结果:
{"returnPhrase":["started"],"query":"Started","errorCode":"0","l":"en2zh-CHS","tSpeakUrl":"https://openapi.youdao.com/ttsapi?q=====这部分我码掉了========= d&ttsVoiceStrict=false","web":[{"value":["打响","起家","开始","已启动"],"key":"Started"},{"value":["开始","初步洽谈","新手入门"],"key":"Getting started"},{"value":["一吻定情","爱从一个吻开始","恶作剧2吻"],"key":"It Started With a Kiss"}],"requestId":"3d6faa77-8d80-4685-b1ca-1766b165d59b","translation":["开始"],"dict":{"url":"yddict://m.youdao.com/dict?le=eng&q=Started"},"webdict":{"url":"http://mobile.youdao.com/dict?le=eng&q=Started"},"basic":{"exam_type":["高中"],"us-phonetic":"ˈstɑːrtɪd","phonetic":"ˈstɑːtɪd","uk-phonetic":"ˈstɑːtɪd","uk-speech":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&=====这部分我码掉了=========&voice=5&format=mp3&appKey======这部分我码掉了=========&ttsVoiceStrict=false","explains":["v. 使发生,开始;开动,发动(机器);创立,创始;出发,启程(start 的过去式和过去分词)"],"us-speech":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&sign======这部分我码掉了=========&ttsVoiceStrict=false"},"isWord":true,"speakUrl":"https://openapi.youdao.com/ttsapi?q=Started&langType=en&sign======这部分我码掉了=========&salt======这部分我码掉了=========&voice=4&format=mp3&appKey======这部分我码掉了=========&ttsVoiceStrict=false"}
错误日志: 10:23:42 workflow.py:2314 DEBUG set last run version: 3.0.0 10:23:42 workflow.py:2137 DEBUG ---------- finished in 0.442s ---------- 10:23:42 connectionpool.py:948 DEBUG Starting new HTTPS connection (1): sentry.io:443 Sentry is attempting to send 2 pending error messages Waiting up to 2 seconds Press Ctrl-C to quit [10:23:44.705] Youdao[Script Filter] { "items": [ { "title": "500 \u6709\u9053\u7ffb\u8bd1\u5931\u8d25", "subtitle": "", "valid": true, "arg": "3.0.0$%$%$%EN2zh-CHS$%$%error", "icon": { "path": "icon_error.png" } } ] }