Not all shadow tiddlers present on Gitlab..?

Hi. This is a technical issue I’m having so I hope this is the right place.

I used nodejs to create my wiki, work on individual tid files, and then use nodejs to render an HTML again to upload to Gitlab and open it that way (I want the javascript functionality, not just HTML pages as in a static site). I use the command shown in tiddlywiki.com: tiddlywiki --rendertiddler $:/core/save/all index.html text/plain

The resulting file works fine. However, when I push to Github and try to run it there, I get “Get Status Error: [XMLHttpReques]…” where it cannot find the tiddler. When I look those up (these are shadow tiddlers) I can’t find them. It seems there are maybe 20% of the normal shadow tiddlers I otherwise find in the file on my own computer.

The HTML file on gitlab and the one on my computer are identical via diff. I even downloaded from gitlab, and tried to run, everything is fine.

So, my guess is that something that runs to operate these tiddlers is blocked or not working. The errors keeps showing and they are all timeout related. Here are a couple of examples:

syncer-browser-tiddlyweb - 3rd November 2022 at 12:20am

Get Status Error: [XMLHttpRequest](https://taonaw.com/wiki#XMLHttpRequest) error code: 404

syncer-browser-tiddlyweb - 3rd November 2022 at 12:34am (count: 160)

Sync error while processing save of '[$:/StoryList](https://taonaw.com/wiki#%24%3A%2FStoryList)': [XMLHttpRequest](https://taonaw.com/wiki#XMLHttpRequest) error code: 405

syncer-browser-tiddlyweb - 3rd November 2022 at 12:33am (count: 14)

Error retrieving skinny tiddler list: [XMLHttpRequest](https://taonaw.com/wiki#XMLHttpRequest) error code: 404

What causes these, any idea? I store the HTML file in my /docs folder on my static site, if this helps.

It sounds like the plugins needed for the node.js version of TiddlyWiki to work are being included in the single file wiki generated.

Could you please post the list of available plugins in the single file wiki? Try disabling the following plugins if they exist and uploading the file again.

  • $:/plugins/tiddlywiki/tiddlyweb
  • $:/plugins/tiddlywiki/filesystem

Edit: if the wiki in question is the one at The Art of Not Asking Why — JTR Documentations of Tech Voyages and Beyond then I can confirm that the presence of these two plugins is the problem.

Try this build command instead:
tiddlywiki --rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline index.html text/plain

This resolved it…!!

Now, the question I have for you is why? I don’t recall needed to do this before, back when I had it hosted on aws - though I didn’t play with it much. I also notice that I have the “save changes” button instead of the server status button… hmmm…

So my guess is that node.js, when rendering, has settings meant for node.js. But we don’t have node.js in GitLab (because we don’t have nodejs running) so it causes nd issue. This is also why the AWS wasn’t a problem - it wasn’t a wiki generated by node.js at the time. yes, yes. Things are clicking into place.

Ah…So that’s maybe why when it was suggested to use Netify, I saw node.js mentioned; you could have it running there and this issue won’t happen.

So what do these plugins do exactly, and what does the render command you gave me does differently? Care to enlighten me please?

And thank you!!!

  • $:/plugins/tiddlywiki/tiddlyweb - is used by the TiddlyWiki file in the browser to talk to the node.js server
  • $:/plugins/tiddlywiki/filesystem - is used by the node.js server to write tiddlers to the disk

The first argument to rendertiddler specifies the template to use to render the output.

The difference between $:/plugins/tiddlywiki/tiddlyweb/save/offline and $:/core/save/all is that the former excludes the above two plugins from being saved to the single file wiki created, as they are only needed when used in the node.js configuration.

1 Like

Thank you for that. I don’t know how many others use TW this way (node.js to edit individual tiddlers, then combine them to a single file again for online usage), but if they’re out there, this is very important. I will include it on my website for sure :slight_smile: