Before I dig too much further into this problem, I’m curious as to whether anyone else experiences the Edit+ interface (or possibly the JavaScript API or Squiz Edge infrastructure) being unreliable. I ask because firstly, the Edit+ interface takes a long time (15 seconds) to reflect a save whilst editing in Admin interface takes 0.5 seconds; and secondly, I’m regularly seeing 504 Gateway Timeouts when using Edit+ leading to saves that “appear” to never finish (but actually did).
Here’s how it goes:
- Load Edit+ for a Page asset
- Make a basic change, such as changing the Page Name
- Click Save.
- The standard Matrix progress spinner shows, whiting out the rest of the page.
- Two POST requests are fired to
edit.js
and responses are seen as200 OK
within 0.5 to 1.5 seconds (average). The first HTTP response’s JSON array appears to indicate a successful change (JSON saysAttribute "name" has been successfully set to...
) and the second is a successful acquisition of the locks for the asset (JSON says"all" locks are now acquired...
).
For saves that do appear to complete, it takes between 10-20 seconds from clicking the Save
button to seeing the save appear to be completed when the “tick” icon replaces the spinner and the Edit+ UI is accessible again. For note, there’s 3 more JSON requests that succeed occur after the 10-20 second mark. By contrast, the same change of Page name via the admin interface takes 0.5 seconds to be reflected in the UI.
For saves that don’t appear to finish, the following continues on from point 5 above:
- A third long-running POST to
edit.js
produces a504 Gateway Timeout
at the 60 second mark (presumably the timeout set in nginx/OpenResty). I don’t have details as to what was in this JSON request, but it is seemingly the 3rd request above that is failing. - The progress spinner continues to show and never changes.
- Give up waiting after several minutes and reload the page and note the changes have actually saved (well before now).
- If you wait long enough, the page will go black with an EES POST timeout error.
As you might expect, having to wait 20 seconds for edits to save (or just appear to) is really frustrating for users. And having the saves appear to never finish is even worse for editors.
For note, the only regular 504 Gateway Timeout
s I see in the admin interface are via the Quick Search (which then 504
s the heading) and more recently the HIPO popup; but very uncommonly when making changes to details/content/metadata.
Thoughts? Anyone seen this before?
Matrix Version: 5.3.3.0