HelloZeroNet / HelloZeroNet/ZeroNet

Invalid Content.json files with clones site?

未关闭
#1,372 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

Using the latest version of ZeroNet from a Linux machine, and not using it over TOR. I attempted to launch a clone of the Millchan imageboard zite. Two attempts were made, and the site seemed to clone successfully. After modifying index.html and making a few minor aesthetic changes, I signed and published the site.

The problem arises when attempting to actually use the clone. Any change, such as a new board, new post or reply throws the following error:

Internal error: Exception: Invalid content.json file: data/users/1K3dqsJjQwTShJRNShqW76UaRQi1XaZjSy/data.json
UiWebsocket.py line 81 > UiWebsocket.py line 258 > MergerSitePlugin.py line 203 > MergerSitePlugin.py line 197 > UiWebsocket.py line 431 > MergerSitePlugin.py line 200 > MergerSitePlugin.py line 197 > UiWebsocketPlugin.py line 36 > UiWebsocket.py line 382

The content.json file exists, but only contains the following lines:

{
"optional": "(?!data.json)",
"ignore": "blacklist.json(-old)?"
}

Any advice would be appreciated.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 UiWebsocket.py 和 MergerSitePlugin.py 中的 traceback 位置开始,然后检查报告中的 data/users/.../data.json 及其 content.json。在不使用 TOR 的 Linux 上复现克隆工作流,并确定生成的 content.json 被拒绝的原因;完成的标准是对克隆站点的更改不再引发 invalid-content 错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。