HelloZeroNet / HelloZeroNet/ZeroNet

content publish failed

未关闭
#535 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

upon this command:

Page.cmd("fileWrite", [inner_path, btoa(json_raw)], function(res) {
console.log(res);
Page.cmd("sitePublish",{"inner_path":inner_path,"sign":false}, function(res) {
console.log(res);
$scope.$apply(function() {
Page.cmd("wrapperNotification", ["done", "Comment posted!", 10000]);
$scope.comments.push(comment);
});
});
});

im getting this console error - content publish failed

terminal log:
`[13:11:12] - Unhandled exception
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "src/Site/Site.py", line 425, in publish
inner_path, limit, len(self.peers), num_connected_peers, diffs.keys(), float(len(str(diffs))) / 1024
AttributeError: 'NoneType' object has no attribute 'keys'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "src/Site/Site.py", line 425, in publish
inner_path, limit, len(self.peers), num_connected_peers, diffs.keys(), float(len(str(diffs))) / 1024
AttributeError: 'NoneType' object has no attribute 'keys'
`

贡献指南

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

调研方向

Start with the publish method in src/Site/Site.py around line 425 and trace how diffs is produced for the fileWrite/sitePublish sequence shown in the issue. Reproduce the command sequence, inspect the publish traceback, and consider the issue done when publishing no longer fails with the NoneType keys error and the existing comment-posting flow completes.

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

评估

技术栈
javascript, python
领域
backend, distributed-systems
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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