GitHub saving tips?

138 views
Skip to first unread message

Cade Roux

unread,
Aug 26, 2019, 1:40:19 PM8/26/19
to TiddlyWiki
I have a TW file in GitHub.  I set up all the parameters for GitHub saving, they seem to be correct.  I got some errors in XMLHttpRequest 409, which perhaps indicates that a commit was not allowed due to a conflict?  Sometimes it gives that error or sometimes it just sits there with the red check in a circle.  Either way, nothing is committing to GitHub.

Any tips on what to look at?

Thanks,

Cade

Mark S.

unread,
Aug 26, 2019, 1:52:14 PM8/26/19
to TiddlyWiki
It might help if you could show a screen shot of your set up.

I found that you MUST specify

Path to target file (e.g. /wiki/)

That is, that field can not be blank. I was using the top level, so put in /

Good luck!

Cade Roux

unread,
Aug 26, 2019, 1:59:01 PM8/26/19
to TiddlyWiki
Sure.

I have a token in the password


This is what GitHub looks like in the Web interface:

Capture.PNG

Mark S.

unread,
Aug 26, 2019, 2:50:10 PM8/26/19
to TiddlyWiki
Does it save if you switch to master?

On mine, I got everything to work, including working on development branch. Then I downloaded and reloaded the file, and after that
I couldn't get it work on "development". I had the same 409 message. Then I switched back to "master" and it worked OK again.

Suggests there's a bug somewhere, that retains "master" as a default.

Good luck!

Cade Roux

unread,
Aug 26, 2019, 2:55:58 PM8/26/19
to TiddlyWiki
Let me try that.  I did originally have develop instead of development because another repo used that convention and I got a 404.

Thanks,

Cade

Cade Roux

unread,
Aug 26, 2019, 3:05:17 PM8/26/19
to TiddlyWiki

So I merged everything into master, switched over to master, pulled everything, opened the file from the filesystem in browser, switched it over to master, put in user name, edited a tiddler and clicked save:


Capture.PNG



Capture.PNG


But - it does say in GitHub "Saved by TiddlyWiki"


Capture.PNG



Thanks,

Cade

Mark S.

unread,
Aug 26, 2019, 3:37:53 PM8/26/19
to TiddlyWiki
This is definitely one for Jeremy.

How about if you delete your file from the master on github, reload your local copy, and reset github settings to use master? Then can you at least use master?

I found that by going through a similar sequence I could get ONE save on the development branch. It seems like github doesn't like the development branch
getting out of synch with the master branch. But exactly how that works is a mystery ...

Good luck!

FFT

unread,
Aug 26, 2019, 5:42:14 PM8/26/19
to TiddlyWiki
Same happens on master branch.

Mohammad

unread,
Aug 26, 2019, 11:13:32 PM8/26/19
to TiddlyWiki
Cade,
Have a look at
https://kookma.github.io/TW5-GitHub-Saver/

And check the FAQ

Mohammad

Mark S.

unread,
Aug 26, 2019, 11:42:45 PM8/26/19
to TiddlyWiki
Hi Mohammad,

Have you tried saving to a branch other than master? For me, it works just once
to push to a different branch. After that there is a 409 error. I notice your example
is still on the master.

Thanks!

Mohammad

unread,
Aug 27, 2019, 12:42:41 AM8/27/19
to TiddlyWiki
Hi Cade


For me nothing happened and the save button remains red!
I confirm there is somewhere something wrong!
No success on other branches!

--Mohammad

Mohammad

unread,
Aug 27, 2019, 12:53:43 AM8/27/19
to TiddlyWiki
Hi Mark,

 I failed to save in other branches!
But I don't see any error message!
The bad thing is when you click the save button even when everything is correct
Tiddlywiki does not show "Start to saving" like when you save to tiddlyspot!

So seems everything is performed silently and user cannot realize does TW start saving or there is some errors occured in this between.

--Mohammad

Mohammad

unread,
Aug 27, 2019, 9:34:26 AM8/27/19
to TiddlyWiki
Mark,
after several trials I was able to save to another branch. Strangely on GitHub I see this message

Your recently pushed branches: gh-pages

gh-pages is the name of branch I used instead of master.

By the way the saving was successful!

I hope Jeremy could have a look on saving mechanism in TW 5.1.20.

--Mohammad


On Tuesday, August 27, 2019 at 8:12:45 AM UTC+4:30, Mark S. wrote:

Jeremy Ruston

unread,
Aug 27, 2019, 11:42:23 AM8/27/19
to tiddl...@googlegroups.com
Hi Everyone

Apologies, I'm late to this thread. What's the current status? Do we have bugs, or do we need to improve the docs?

The error HTTP 409 typically means that the file has changed on Git inbetween the start of the save operation and its conclusion; this can happen very easily if save operations overlap.

We may need to patch things to detect that a save is in progress.

Best wishes

Jeremy


On 26 Aug 2019, at 20:37, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:


--
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/b7888d04-cd18-451a-8aea-0399b5f0c9aa%40googlegroups.com.

Cade Roux

unread,
Aug 27, 2019, 12:03:30 PM8/27/19
to TiddlyWiki
I'm not sure - nothing is being committed to GitHub outside of TW in my testing, and I get the fresh file before starting, so I think there might very well be a timing issue.  It's hard to see what's going on, I guess I should probably pull up the browser dev tools and look at traffic.

Thanks,

Cade
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

Mark S.

unread,
Aug 27, 2019, 12:11:50 PM8/27/19
to TiddlyWiki
For me, I can save to master but not to any other branch. I am not rapid-firing saves. The 409 is consistent whenever I try a branch other than master. The first time
I use a new branch, it works (sends the file), but all subsequent attempts fail. Since timing may depend on whether you're using a master or a sub-branch, it
could relate to that.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

Jeremy Ruston

unread,
Aug 27, 2019, 12:31:07 PM8/27/19
to 'Mark S.' via TiddlyWiki
Thanks Mark, Cade. That's helpful, I'll do some testing.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 27 Aug 2019, at 17:11, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:
>

Mohammad

unread,
Aug 27, 2019, 1:49:37 PM8/27/19
to TiddlyWiki
Hi Jeremy!
My experiments shows

  • When save to GitHub you don't see the "Start to save" as we see for tiddlyspot. So you can realize if clicking button start saving or not
  • When save using master branch it works fine
  • When save using master branch and sub-folder, TW create the folder if it is not exist and it works fine
  • When save to other branch, most of the time the first save is successful and the subsequent save shows Error 409

I hope these help to locate the issues.

--Mohammad
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages