GitHub Saver 404 error

500 views
Skip to first unread message

Samuel Wiechmann

unread,
Nov 14, 2020, 8:37:11 PM11/14/20
to TiddlyWiki
Hello,

I'm still a newbie to the whole topic and can't figure out what I do wrong with the GitHub Saver. I've tried with a new repository and also in different browsers (Opera, Chrome, Firefox) and different Internet connections. 

This was my first try where I followed the instructions given on Chris Aldrich's blog:

I did not even get it to do anything else than save by downloading. 
So I started a new repository and followed the instructions given on Mohammad's blog:

So here I tried opening the new index.html file from my local directory and when I opened it in my browser, the Token was already filled in - seems logical as it is supposed to be saved in my browser.
And when I enter a wrong token, it logically returns a 401 error. If I don't enter anything as a path, it saves as a download, when I enter / or a subfolder, I get the 404 error. And I can't get rid of it.

I'll probably try again tomorrow, right now I'm too tired to figure this out, but it would be awesome to get this to work :)

Best regards from cold and dark Norway,

Samuel

Mark S.

unread,
Nov 14, 2020, 10:36:56 PM11/14/20
to TiddlyWiki
In your 2nd case, we can't learn anything about your setup, because all the fields are empty.

In your first case, try putting a / or /docs/ in the path field. An unfilled path field has been a problem in the past.

Samuel Wiechmann

unread,
Nov 15, 2020, 6:11:18 AM11/15/20
to TiddlyWiki
Ah right, in the second case I tried uploading from the local file and didn't upload a proper index.html.

Filling in the path field doesn't help, no matter if / or with an existing folder. 


scourfie...@gmail.com

unread,
Jan 20, 2021, 4:54:03 AM1/20/21
to TiddlyWiki
Hi Samuel. Did you ever figure this out? I think I'm having the same issue (inexplicable 404 errors)

Mohammad Rahmani

unread,
Jan 20, 2021, 9:38:06 AM1/20/21
to tiddl...@googlegroups.com
If you did all steps correctly, just disable auto save. Uploading the whole TW specially with many plugins and tiddlers is a little slow on GitHub and I may recommend to save on demand.



Best wishes
Mohammad


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f1540981-3225-4f04-864b-d18ee6e466c2n%40googlegroups.com.

Finn Lancaster

unread,
Jan 22, 2021, 11:58:54 AM1/22/21
to TiddlyWiki
Hi Samuel, 
I'm not sure if this will be much help, but I'd recommend using a Personal Access Token for Github saving. Most likely you are already doing this, so I'd say to revoke, and then generate a new PAT and give it the proper permissions to "Write Gists" at the proper step. In my case, this was the fix. Hope it helps!

Sincerely, 
   Finn Lancaster 
   Site Developer & Designer -  finnsoftware.net
   Implementing Collaborative TiddlyWiki - wiki.finnsoftware.net

TW Tones

unread,
Jan 23, 2021, 12:21:56 AM1/23/21
to TiddlyWiki
Samuel

I have not followed this thread, but here is what my tiddlywiki at https://anthonymuscio.github.io/ looks like for me with the appropriate settings to save to GitHub. It is set and forget.

Other wikis linked to are often held offline and uploaded per html file so there is not need to configure this, but If I want online update I would have to configure them similarly.

Regards
Tones

Snag_1065d831.png

Rika Sukenik

unread,
Mar 5, 2021, 7:23:27 PM3/5/21
to TiddlyWiki
Hmm, I'm also struggling with a 404 error. I thought the issue is in path name, so I've tried a few options. The first was I added "/" and the second is I created a wiki folder in my repo with a blank index.html file. 

Anyone who is following this thread figured it out? Next step for me would be to reach out to Jeremy because this has been a problem for me for several months. I've been manually saving, but of course that's less than ideal. 

Eric Shulman

unread,
Mar 5, 2021, 8:01:28 PM3/5/21
to TiddlyWiki
On Friday, March 5, 2021 at 4:23:27 PM UTC-8 rika.s...@gmail.com wrote:
Hmm, I'm also struggling with a 404 error. I thought the issue is in path name, so I've tried a few options. The first was I added "/" and the second is I created a wiki folder in my repo with a blank index.html file.   Anyone who is following this thread figured it out? Next step for me would be to reach out to Jeremy because this has been a problem for me for several months. I've been manually saving, but of course that's less than ideal. 

I also had a 404 problem with the GitHub Saver.   Turns out it was because I had not explicitly set all the default values.  Specifically, the "target branch for saving" should be "main" (for newer repos) or "master" (for older repos).  Even if the input field already shows that value by default, you should clear the value and type it in yourself.  The same goes for the "filename of target" input (usually "index.html").

hope this helps,
-e

Rika Sukenik

unread,
Mar 6, 2021, 12:50:37 AM3/6/21
to tiddl...@googlegroups.com
E - wow! thank you so much. I finally got it to work! 

Curious, do you have the autosave feature on & working? I enabled it but the file doesn't autosave. 

Best,
Rika Sukenik 


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/RsvwLHm65C8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/67860503-cf70-4d9a-80da-dc78f8a982f6n%40googlegroups.com.

Carsten

unread,
Jun 18, 2021, 1:30:58 PM6/18/21
to TiddlyWiki
Hello.
I got it working finally after reading again the instructions and recognizing, that you can only use it with a single-file. I was always trying this with the NodeJS server hosted version, which does not work.
The auto-save is working for me with Github.

But I might have a security concern here. I found some TW files online in GitHub Repos which, after downloading the files from the GitHub repo, (not the github.io-pages version), still contain the Access Token in clear text. Visible when you inspect the source code.
Is there a way, that the access token gets taken out before the file is saved to github?

PMario

unread,
Jun 18, 2021, 3:01:13 PM6/18/21
to TiddlyWiki
On Friday, June 18, 2021 at 7:30:58 PM UTC+2 Carsten wrote:

But I might have a security concern here. I found some TW files online in GitHub Repos which, after downloading the files from the GitHub repo, (not the github.io-pages version), still contain the Access Token in clear text. Visible when you inspect the source code.
Is there a way, that the access token gets taken out before the file is saved to github?

The access token is saved in the browser local storage. So it isn't part of the wiki file, except the user saved it there. ...

Could you describe it a bit closer, so it may be reproducible? IMO that will help a lot.

-mario

Finn Lancaster

unread,
Jun 20, 2021, 9:44:28 AM6/20/21
to tiddl...@googlegroups.com
As far as I know (and can see), TW does not save access tokens AT ALL except for in localStorage on the computer AFTER you have given your GitHub password. In addition to this, I doubt users will have saved it alongside the wiki; GitHub automatically searches all repos for this password, and doesn’t push any changes if it does. Maybe you were seeing some other string of numbers for something else? 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ef2132d9-e8ba-4522-b126-5fc5dd78bee8n%40googlegroups.com.

Jeremy Ruston

unread,
Jun 26, 2021, 10:50:52 AM6/26/21
to tiddl...@googlegroups.com
Hi Carsten


On 18 Jun 2021, at 18:18, 'Carsten' via TiddlyWiki <tiddl...@googlegroups.com> wrote:

But I might have a security concern here. I found some TW files online in GitHub Repos which, after downloading the files from the GitHub repo, (not the github.io-pages version), still contain the Access Token in clear text. Visible when you inspect the source code. 
Is there a way, that the access token gets taken out before the file is saved to github?

I can’t see an obvious cause for that. Could you link to one of the wikis concerned?

Many thanks,

Jeremy
Reply all
Reply to author
Forward
0 new messages