LabelPixivBookmarks icon indicating copy to clipboard operation
LabelPixivBookmarks copied to clipboard

[BUG] 获取收藏夹时发生错误

Open moexizer opened this issue 1 year ago • 1 comments

运行环境 Edge + Tampermonkey

如何复现 在 Function 整个收藏夹进行扫描,卡在最后一个项目报错。

此前是否能够正常工作 不能,第一次安装使用。

错误信息或截图

Screenshot 2024-04-15 165433

moexizer avatar Apr 15 '24 09:04 moexizer

抱歉回复有些晚。 之前也有用户反馈过类似问题,原因是收藏夹里最古早的几个收藏与Pixiv某些运行逻辑冲突,导致API出问题。如果方便的话请在控制台执行下这段代码(按F12,在右下角),将返回结果附上,看看能不能处理。

const uid = "";  // 这里填上你的uid,地址栏里就有
const bookmarks = await (
  (await fetch("/ajax/user/"+uid+"/illusts/bookmarks?tag=&offset=46200&limit=100&rest=show")).json()
);
const a = document.createElement("a");
a.href = URL.createObjectURL(
  new Blob([JSON.stringify(bookmarks)], { type: "application/json" })
);
a.setAttribute("download", "bookmarks.json");
a.click();

如果无法运行也请附上错误信息,在上方“网络”窗格会显示这个请求的详细内容和错误原因。 另外,目前实际上程序应该在报错后点OK也可以继续运行?如果不行的话请截下完整报错内容我再看看(截图里只有最开始的几行)

Ziqing19 avatar Apr 25 '24 03:04 Ziqing19