HelloZeroNet / HelloZeroNet/ZeroNet

"Save site settings" button or "Sign" button does nothing

オープン
#1,286 コメント 19 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
18.8k
フォーク
2.3k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Step 1: Please describe your environment

* ZeroNet version: 0.6.2 rev3323
* Operating system: Win. 10 64bit
* Web browser: Firefox
* Tor status: available
* Opened port: no

### Step 2: Describe the problem:

I have clonned ZeroTalk, i have created first topic. I opened (0) menu and tried to modify site name and description and click "Save site settings" and "Sign" button. Nothing happened. Site has only me as apeer (Onion: 1). When i reload page and click save site settings, i see this in developer console (F12):

[ZeroTalk] save scrollTop 0
all.js:457:7
[ZeroWebsocket] Closed
close { target: WebSocket, isTrusted: true, wasClean: false, code: 1006, reason: "", currentTarget: WebSocket, eventPhase: 2, bubbles: false, cancelable: false, defaultPrevented: false, … }
all.js:142:14
[Wrapper] Created!
all.js:1546:14
[ZeroWebsocket] Open
all.js:142:14
[ZeroTalk] inited!
all.js:457:7
[ZeroTalk] restore scrollTop
Object { scrollTop: 0 }
0
all.js:457:7
[Wrapper] actionSetViewport
Object { cmd: "wrapperSetViewport", params: "width=device-width, initial-scale=0.8", wrapper_nonce: "removed", id: 1 }
all.js:1546:14
[Wrapper] Setting title to myZeroTalk - ZeroNet
all.js:1546:14
[User] Updating user info... undefined
all.js:457:7
[ZeroTalk] Routing url: Topic:removed/removed&wrapper_nonce=removed
all.js:457:7
[TopicShow] Loading topic... (Done in 148ms)
all.js:457:7
[TopicShow] Loading comments... (Done in 168ms)
all.js:457:7
[ZeroTalk] Adding inline editors (Done in 8ms)
all.js:457:7
[Follow] Username mentions -> undefined
all.js:457:7
[Follow] New topics -> undefined
all.js:457:7
[ZeroTalk] Websocket callback not found:
{…}
cmd: "response"
result: undefined
to: 10
__proto__: {…}
__defineGetter__: function __defineGetter__()
__defineSetter__: function __defineSetter__()
__lookupGetter__: function __lookupGetter__()
__lookupSetter__: function __lookupSetter__()
constructor: function Object()
hasOwnProperty: function hasOwnProperty()
isPrototypeOf: function isPrototypeOf()
propertyIsEnumerable: function propertyIsEnumerable()
toLocaleString: function toLocaleString()
toSource: function toSource()
toString: function toString()
valueOf: function valueOf()
all.js:457:7
[Sidebar] startDrag
all.js:1596:7
[Sidebar] Moved
all.js:1596:7
[Sidebar] Creating content
all.js:1596:7
[Sidebar] Opened
all.js:1596:7
loadGlobe true
all.js:2399:7
[Sidebar] stopdrag opened: true
all.js:1596:7
THREE.WebGLRenderer 69
all.js:1048:216
THREE.WebGLProgram: gl.getProgramInfoLog()

all.js:1110:154
THREE.WebGLProgram: gl.getProgramInfoLog()
C:\fakepath(27,33-109): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them

all.js:1110:154
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!
19removed

I checked the log file for interesting log entries and i see:
[2018-02-13 11:40:16,786] DEBUG FileServer Conn#74741 64.137.251.65 [v2] > Socket error: UnpackValueError: Unknown header: 0xc1 in Connection.py line 185 > fallback.py line 557 > fallback.py line 538 > fallback.py line 537 > fallback.py line 498 > fallback.py line 494
[2018-02-13 11:40:30,592] DEBUG Site:mysiteaddress Websocket send error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 232: invalid continuation byte in UiWebsocket.py line 202 > __init__.py line 244 > encoder.py line 207 > encoder.py line 270

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Reproduce the ZeroTalk settings and signing actions while inspecting all.js and the server-side traces in Connection.py, fallback.py, and UiWebsocket.py. Start with the UnicodeDecodeError and the websocket callback warning, then verify that both buttons complete their actions without the reported console or log errors.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, python
領域
backend, frontend, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
32/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。