# Synchronization between gist and flow.nodered.org

**URL:** https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285
**Category:** General
**Created:** [29 November 2023 13:49 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285 "2023-11-29T13:49:44Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![malys](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/malys/32/79955_2.png) [@malys](https://discourse.nodered.org/u/malys)
#### Post date: [29 November 2023 13:49 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/1 "2023-11-29T13:49:44Z")

</div>

Hi,  
I have created this [flow](https://flows.nodered.org/flow/5203cdf15000bd64d1da800a005bab55).  
Currently, the synchronization between gist and [flow.nodered.org](http://flow.nodered.org) failed without any message.

Do you know what is happening?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [29 November 2023 13:55 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/2 "2023-11-29T13:55:32Z")

</div>

Hi @malys

I'm not seeing any errors in the logs when I request it to refresh the flow - so the short answer is I'm not sure why it isn't syncing. I'll need to dig into the code to remind myself how it's meant to work and how it might be failing - this isn't an area of code that has changed in literally years.

---

<div class="post-metadata">

### Author: ![malys](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/malys/32/79955_2.png) [@malys](https://discourse.nodered.org/u/malys)
#### Post date: [29 November 2023 16:21 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/3 "2023-11-29T16:21:40Z")

</div>

the synchronization at the beginning worked well but after updating my flow with new features, the process fails without any feedback.  
I have created a github's issue: [Flow synchronization failed with github · Issue #108 · node-red/flow-library · GitHub](https://github.com/node-red/flow-library/issues/108)  
but I haven't received answer.  
Thank you for your help.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [29 November 2023 16:33 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/4 "2023-11-29T16:33:28Z")

</div>

@malys I did see the issue when you raised it, and at the time as I couldn't see a quick answer in the logs to give you, I parked it and then failed to come back to it - my apologies for that.

I will try to dig into it this week.

---

<div class="post-metadata">

### Author: ![malys](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/malys/32/79955_2.png) [@malys](https://discourse.nodered.org/u/malys)
#### Post date: [5 December 2023 08:15 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/5 "2023-12-05T08:15:24Z")

</div>

Hello @knolleary, Do you understand what's happening ?  
Thansk for your help.

If you want I can do some tests for you if it's helping?

bye

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [6 December 2023 11:25 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/6 "2023-12-06T11:25:36Z")

</div>

Hi @malys

The short answer is your flow is too big. You could try minifying the JSON and then see if it refreshes.

The long answer is; the github api we use to refresh the flow returns the full contents of each file in the gist up to a certain limit. Beyond that limit it returns a truncated version and you have to make additional api calls to retrieve the full version. Currently the flow library doesn't know how to do that second part so it rejects the refresh attempt.

I'll look at what is needed to get this working properly - but also to see why it wasn't getting logged properly and a better response passed back to the user.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [6 December 2023 12:18 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/7 "2023-12-06T12:18:10Z")

</div>

I've just pushed a fix that handles larger files (not unlimited... just a bit bigger) - and adds feedback to the refresh button to let you know if you've hit a limit.

I've refreshed your flow and it is now up to date.

---

<div class="post-metadata">

### Author: ![malys](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/malys/32/79955_2.png) [@malys](https://discourse.nodered.org/u/malys)
#### Post date: [6 December 2023 12:31 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/8 "2023-12-06T12:31:30Z")

</div>

Many thanks.  
what is the limit?

I will minify JSON and reduce image size.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [6 December 2023 12:51 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/9 "2023-12-06T12:51:09Z")

</div>

The image size is not relevant - we don't pull that into our database.

The file limit is 300k

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [20 December 2023 12:51 UTC](https://discourse.nodered.org/t/synchronization-between-gist-and-flow-nodered-org/83285/10 "2023-12-20T12:51:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
