#Autosave closed early.

1 messages · Page 1 of 1 (latest)

faint slate
#

I've been getting this error when saving 2 properties in my Page collection within a short time.
I'm suspecting it has something to do with the nested-docs plugin, that has a few hooks running, and they can't keep up with the autosave feature?

I'm using 250ms for the interval, because this makes the live-preview look smooth.

  versions: {
    maxPerDoc: 50,
    drafts: {
      autosave: {
        interval: 250,
      },
    },
  },

Has anyone experienced this? Is my hunch correct?

umbral egretBOT
glossy star
#

I get the same error when typing in a text field after upgrading from 3.19 to 3.22 , I think the autosaves triggered by the first few letters get aborted by the autosaves that come after. I get this without using the nested-docs plugin, but I have not been able to replicate it from a freshly generated project

faint slate
#

Interesting! I reverted back to 3.20 an hour ago, let me try 3.18.

#

I'm getting this error on 3.18.0 and 3.16.0 as well, so I think it's more so related to the nested-docs hooks that are not done when starting another change.

faint slate
#

@glossy star Hm I'm having this issue again now without the nested-docs plugin. So you might be right that it's due to a recent commit. Have you tried increasing the interval of autosave?

slate whale
faint slate
#

I haven't seen an issue on Github yet, but I'm in too much of a rush to create a reproduction.

north narwhal
#

Same issue with newest version. After set autosave: false problem solved (but feature doesnt work:)) )

#

^ I got just pure website template (I am currently exploring Payload, not using on production etc yet)

slate whale
#

In my case: ERROR: Cannot read properties of undefined (reading '_status')

north narwhal
#

I can't check now but I remember on my side it was something similar - cannot read property but it was "_id"

slate whale
#

Okay i'm creating a issue in the repo. In your case it started happening as soon as you updated to V23 right?

north narwhal
#
  • it happened when i switched to Live preview mode when editing page (so live preview was on the right) . Few days ago I started exploring payload so I can't declare it wasnt before cause today was first time when I was playing with that feature
#

I was exploring custom strategy ( goal was to "disable" native auth feature) so I thought it was something with my settings/editing files, but now I saw that issue here so I must check again lol. Tomorrow morning I will check how it works with some of previous versions of payloadcms

slate whale
#

With v17 at least it was working for me

north narwhal
#

I will try to check it as soon as possible when I will back to home cause I am outside now 😉

faint slate
#

@slate whale Can you link the issue here when you made it, we'll upvote and comment where needed

sacred wharf
#

Same issue as you guys ! 😉 does anyone have a clue for solving this without disable autosave ?

lost wharf
#

Same here

faint slate
#

Not yet, I tried increasing the interval time but it's still popping up (using latest payload 3.23).

finite lantern
#

I have the same issue

slate quiver
#

For me aswell

faint slate
slate whale
#

Hi guys any updates?

jovial fiber
#

This has been fixed in 3.24.0

slate whale
#

Okii thanks 🙏