flytam/blog-sync-tool

FetchError: invalid json response body at https://mp.csdn.net/mdeditor/getArticle?id=103946206 reason: Unexpected token < in JSON at position 0

Closed this issue · 1 comments

正在生成文件.... (node:6212) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at https://mp.csdn.net/mdeditor/getArticle?id=103946206 reason: Unexpected token < in JSON at position 0 at /usr/local/lib/node_modules/csdnsynchexo/node_modules/_node-fetch@2.6.0@node-fetch/lib/index.js:272:32 at processTicksAndRejections (internal/process/task_queues.js:94:5) (node:6212) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:6212) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ^C⏎
cookies 的格式似乎和你所给的截图不一样, 不知道是不是Csdn作出了修改。
DeepinScreenshot_Alacritty_20200306195247

@onexming csdn域名有变,已经修复,按照readme重新安装最新的工具即可