Help with fault on Bob please

100 views
Skip to first unread message

TonyM

unread,
Mar 23, 2019, 10:35:06 PM3/23/19
to TiddlyWiki
Jed et all,

I have just lost a fait bit of work only to discover my BobWin.exe install consol window displaying messages such as the following.

Any suggestions would be helpful

Thanks in advance
Tony

WebSocket error:  TypeError: Cannot convert undefined or null to object
    at
Function.keys (<anonymous>)
    at $
:/plugins/OokTech/Bob/NodeWebSocketsSetup.js:218:27
    at
Array.forEach (<anonymous>)
    at
Object.$tw.Bob.UpdateEditingTiddlers ($:/plugins/OokTech/Bob/NodeWebSocketsSetup.js:216:34)
    at
WebSocket.$tw.Bob.handleMessage ($:/plugins/OokTech/Bob/NodeWebSocketsSetup.js:138:17)
    at
WebSocket.emit (events.js:182:13)
    at
Receiver.receiverOnMessage ($:/plugins/OokTech/Bob/External/WS/lib/websocket.js:720:20)
    at
Receiver.emit (events.js:182:13)
    at
Receiver.dataMessage ($:/plugins/OokTech/Bob/External/WS/lib/receiver.js:415:14)
    at
Receiver.getData ($:/plugins/OokTech/Bob/External/WS/lib/receiver.js:347:17)
WebSocket error:  TypeError: Cannot read property 'TW5Reference' of undefined
    at $
:/plugins/OokTech/Bob/NodeMessageHandlers.js:268:37
    at
Array.forEach (<anonymous>)
    at
Object.$tw.nodeMessageHandlers.syncChanges ($:/plugins/OokTech/Bob/NodeMessageHandlers.js:263:18)
    at
WebSocket.$tw.Bob.handleMessage ($:/plugins/OokTech/Bob/NodeWebSocketsSetup.js:151:52)
    at
WebSocket.emit (events.js:182:13)
    at
Receiver.receiverOnMessage ($:/plugins/OokTech/Bob/External/WS/lib/websocket.js:720:20)
    at
Receiver.emit (events.js:182:13)
    at
Receiver.dataMessage ($:/plugins/OokTech/Bob/External/WS/lib/receiver.js:415:14)
    at
Receiver.getData ($:/plugins/OokTech/Bob/External/WS/lib/receiver.js:347:17)
    at
Receiver.startLoop ($:/plugins/OokTech/Bob/External/WS/lib/receiver.js:134:22)


Jed Carty

unread,
Mar 24, 2019, 6:11:05 AM3/24/19
to TiddlyWiki
If I understand what it going on I thought that I had removed it. Make sure that you don't have autoUnloadWikis set to true in your configuration.

If you don't have that set did you unload any wikis using the 'unload wiki' button? That shouldn't cause this problem but I think that what is happening is that the wiki you are trying to work with is somehow not loaded.

Regardless of what caused it I need to add some more checks to avoid this.

Jed Carty

unread,
Mar 24, 2019, 6:13:07 AM3/24/19
to TiddlyWiki
Also just to confirm, which version are you using?

TonyM

unread,
Mar 24, 2019, 4:59:39 PM3/24/19
to TiddlyWiki
Jed

Thanks for the response. No actual unloads on my part. I just start up with bobwin.exe my browser loads a few bob tabs and when I start using them the messages appear.

I am about to drive for more than 7 hours but will try and get the version.

Tony

TonyM

unread,
Mar 24, 2019, 6:19:33 PM3/24/19
to TiddlyWiki
The Version

TiddlyWiki version 5.1.19 with Bob version 1.2.1

Tony

Jed Carty

unread,
Mar 24, 2019, 7:06:29 PM3/24/19
to TiddlyWiki
The closest I have been able to find on my train ride is that there are errors like that when you have a wiki open, stop the server and restart the server then reconnect the wiki without reloading the page.

This is something that shouldn't cause an error, the resyncing is supposed to handle that situation, but it looks like it doesn't.

So try stopping Bob, closing any open wikis in your browser and then restart Bob and open up the wikis and see if the problem continues, if not than what I am working on now should fix it and until I get these changes rolled out the reconnect button should be considered unreliable.

TonyM

unread,
Mar 27, 2019, 7:50:41 PM3/27/19
to TiddlyWiki
Jed,

I think I have identified the issue.. While traveling I do not have an Ethernet LAN connection. I usually need to establish a Wifi connection after logining in to the computer. On my Windows machine  BobWin.exe and Tiddly Server (on a different port) load during login. Both are set to serve on 0.0.0.0 but there is no external IP address at the time. However I tend to use 127.0.0.1:port address to access the wikis, so I need not know the valid external IP address. TiddlyServer was working  but Bob seemed unhappy with being asked to server on 0.0.0.0 without a valid external IP Address.

Scanning my local network in this hotel I see more than myself on the local network so I have changed the hosting to be only 127.0.0.1

I will post this and reboot and check if the fault still exists with and without an External IP Address

Regards
tony

TonyM

unread,
Mar 27, 2019, 8:15:47 PM3/27/19
to TiddlyWiki
Report back

Rebooting and starting servers with 127.0.0.1 only, it is slow to load without an external IP Address but I can now access the two servers at the local host. Bob is no longer generating the errors and subsequent connection to the internet does not change this.

So I no longer have the issue but there may be value testing for this case in the bob server.

I will mark this as completed. Thanks for looking into this. 

Love your work Jed

Tony
Reply all
Reply to author
Forward
0 new messages