Hello, everyone!
I went for holidays, and after coming back, I cannot connect to my local (nodejs) tiddlywiki instance.
Error is consistent and is a variation of the following:
sudo /usr/bin/tiddlywiki /home/apinto/paogarden --listen host=127.0.0.1 port=81 debug-level=debug
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Serving on http://127.0.0.1:81
(press ctrl-C to exit)
Request path: {"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":null,"query":null,"pathname":"/","path":"/","href":"/"}
Request headers: {"host":"localhost:81","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","dnt":"1","connection":"keep-alive","cookie":"username-localhost-8888=\"2|1:0|10:1712494711|23:username-localhost-8888|192:eyJ1c2VybmFtZSI6ICIxNzRhZGQxNzVmN2U0MzIzYmIxNWM1ZTM1MzUxZTg4MSIsICJuYW1lIjogIkFub255bW91cyBDYXJwbyIsICJkaXNwbGF5X25hbWUiOiAiQW5vbnltb3VzIENhcnBvIiwgImluaXRpYWxzIjogIkFDIiwgImNvbG9yIjogbnVsbH0=|981058c50c8dc2d9be1d34c72724faf46ba9c6078eef63fb528f1199038f3a92\"; _xsrf=2|98e08dd5|b2ff98d88fee2d40da1d4dd1fc315576|1712494711; username-localhost-8889=\"2|1:0|10:1712759949|23:username-localhost-8889|204:eyJ1c2VybmFtZSI6ICIxNGU5OTQ5NzUwNTM0YTNjOWNkYzdlM2RiYzQzNmExMiIsICJuYW1lIjogIkFub255bW91cyBIYXJwYWx5a2UiLCAiZGlzcGxheV9uYW1lIjogIkFub255bW91cyBIYXJwYWx5a2UiLCAiaW5pdGlhbHMiOiAiQUgiLCAiY29sb3IiOiBudWxsfQ==|f74afd9c65ce1cb7587495942846d40f20d75362e1f64ef997f8379f4ede4347\"; Cookie=sid=17452bd4e74353cef8ce6763b96330ed29382f7a654cb02b8a5be29d8512cea4:Language:portuguese:id=1; 1289-SessionId=3928ee99382556bb3a293f125255b4f448424aeb3cdcf2c6d4cd39a641c374f6; CSRF-Token-WXXYX=KpMyR2eeU7uaH7AnuS4phNQjcKLbYLxa; CSRF-Token-ITCLG=KbYh26rH6sUWdTL6wzQEC6rpbnTb54hV; CSRF-Token-T6XDY=EWeTt9feY9u3TeHv9yGnQgczu6nnkh3w; 8080-SessionId=37c2811ab9e84973b3c3900a29b45b5fbe9711240c5b008bffdbfd44db2cf27e","upgrade-insecure-requests":"1","sec-fetch-dest":"document","sec-fetch-mode":"navigate","sec-fetch-site":"cross-site"}
authenticatedUsername: undefined
$:/core/modules/utils/fakedom.js:278
return b.join("");
^
RangeError: Invalid string length
at Array.join (<anonymous>)
at TW_Element.get ($:/core/modules/utils/fakedom.js:278:13)
at $:/core/modules/utils/fakedom.js:276:17
at $tw.utils.each ($:/boot/boot.js:146:12)
at TW_Element.get ($:/core/modules/utils/fakedom.js:275:14)
at exports.renderTiddler ($:/core/modules/wiki.js:1233:144)
at exports.handler ($:/core/modules/server/routes/get-index.js:20:24)
at Server.requestHandler ($:/core/modules/server/server.js:298:9)
at Server.emit (node:events:519:28)
at parserOnIncoming (node:_http_server:1136:12)
If it helps, my instance usually deletes the field for ‘username for signing changes to tiddlers’ — it’s always blank after a tiddlywiki reboot.
I am running TW 5.3.3.
Thanks for any help!
EDIT: my wiki is version controlled with git; reverting to a previous commit doesn’t help. I can, however, make it run on a new wiki…