Project

General

Profile

Actions

Bug #97003

closed

Get "Navigation loading error. Got unexpected response from the server. Please check logs for details." when fetch request is canceled.

Added by Andrii Oprysko about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Start date:
2022-02-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Description
TYPO3 shows an error message about unexpected response from server in case browser cancel fetch request in the Backend.

How to reproduce
In our installation there are around ~ 800 categories.
If editor starts editing any category it took around ~ 2.5 seconds to finish loading "parent" field with all categories tree. If editor close/save or navigate to different module before fetch request is finished, request got canceled and TYPO3 shows and error "Navigation loading error. Got unexpected response from the server. Please check logs for details.", but in reality there is no any error.

Example of fetch request URL that is getting canceled:

https://[domain]/typo3/ajax/record/tree/fetchData?token=[token]&uid=770&command=edit&tableName=sys_category&fieldName=parent&defaultValues=%5B%5D&overrideValues=%5B%5D&recordTypeValue=1&flexFormSheetName=&flexFormFieldName=&flexFormContainerName=&dataStructureIdentifier=&flexFormContainerFieldName=&flexFormContainerIdentifier=&flexFormSectionContainerIsNew=


Files


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #99455: "Navigation loading error. Got unexpected response from the server. Please check logs for details." when category tree is still loading while savingClosed2023-01-04

Actions
Related to TYPO3 Core - Bug #100219: Get "Navigation loading error. Got unexpected response from the server. Please check logs for details." when fetch request is canceled. - Part 2New2023-03-20

Actions
Actions #1

Updated by Rolf Nakielski about 2 years ago

got the same problem with a lot of sys_category records

in my clients Website there are 3000+

Actions #2

Updated by Sybille Peters almost 2 years ago

Had problem here too after editing and saving a page, directly after close, but it is not always reproducible or I rather I am still figuring out how to reproduce.

This is in an installation after update to v11 from v10 with several pages and extensions.

It might be helpful, if this is possible to reproduce with a standard installation.

The error message seems to be displayed by JavaScript for the PageTree, or more specifically in the SvgTree, but I do not know where the problem occurs.

Searched for "Navigation loading error". Is language label tree_networkError . This language label is used in SvgTree.ts, see

A stacktrace might help to see where the errorNotification() was called. Unfortunately, the function is called in the JavaScript part so there is no message in the logs.

Actions #3

Updated by Sven Teuber over 1 year ago

Got the same problem on 11.5.13. There are ~ 300 Categories, which take ~ 1.5s to fetch and a few more ms to render. If the backend form is closed before the categories are loaded, the error message "Navigation loading error" occurs.

Actions #4

Updated by Michael Kettel over 1 year ago

Same here. After an update from the latest v10 to v11.5.14:

When saving a page after a edit, the big red

"Navigation loading error - Got unexpected response from the server. Please check logs for details."

Message pops up. Not everytime but rather random and very often. Can't find any hint in the logs...

Also editing and then saving a page became very slow. Wit TYPO3 v10 everything was fast and instant, with TYPO3 v11 this is not the case anymore.

It is a large site with more than 100 editors and over 4000 pages. But as I wrote, with version 10 we never had any performance issues.

Regards
Mike

Actions #5

Updated by Kim Christiansen over 1 year ago

I have the same problem with an update from v10 to v11.5.15 with PHP 7.4.
The project has many sys_categories.
If i edit a content-element and close or safe the element again, the error occurs (SvgTree error in browser console).
If i go to the category tab and wait till the categories are loaded and then safe/close, the error does not pop up.

My workaround to fix this error is to disable the categories tab for all tt_content elements. This is only a sutable solution, because i do not use the sys_categories for tt_content Elements:

TCEFORM.tt_content.categories.disabled = 1
Actions #6

Updated by Volker Braun over 1 year ago

  • PHP Version changed from 7.4 to 8.1

TYPO3 update 10.4 to 11.5. We get the error message when creating a reference in a content element by selecting an asset in the filelist. If an asset is selected before the page tree is loaded in the modal filelist window, the error message appears.

Actions #7

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #8

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #9

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #10

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #11

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #12

Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76443

Actions #13

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76473

Actions #14

Updated by Benni Mack over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Gerrit Code Review over 1 year ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76473

Actions #16

Updated by Benni Mack over 1 year ago

  • Status changed from Under Review to Resolved
Actions #17

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #18

Updated by Michal Cygankiewicz about 1 year ago

I am still having this problem in TYPO3 11.5.24, more than 4k categories and 18k pages.

Actions #19

Updated by Alexander Vogt about 1 year ago

We also have such problems with big TYPO3 websites (TYPO3 11.5.24)

Actions #20

Updated by Sybille Peters about 1 year ago

Can anyone who still has the problem post a log message from the logs (written by logging framework, e.g. in var/log / typo3temp/varlog)? This would help to figure out where the problem is and also check if sites are affected.

(I have not seen the problem for a while but I don't do too much editing).

Updated by Alexander Vogt about 1 year ago

I can reproduce it if I click on "Edit page" and immediately after that (while the loading indicator is still visible) on a navigation node in the tree. However, it sometimes happens with other editing actions as well. I cannot find any logs related to this issue. Perhaps it has something to do with canceled AJAX requests.

Actions #22

Updated by Sybille Peters about 1 year ago

Thanks Alexander. I can't reproduce it that way (with TYPO3 version 11.5.24) and 32127 pages (sys_language_uid=0) and 466 sys_category (sys_language_uid=0). Maybe not enough categories, but used to regularly get the message too. I agree it is probably canceled ajax request and did not have any log messages pertaining to this error either.

I would categorize the scenario described as non-error though (Clicking on page tree while loading edit form should probably cancel the request - though the flash message is maybe superfluous).

Actions #23

Updated by Alexander Vogt about 1 year ago

I have found an issue in my tca configuration:

Before:

'config' => [
    'type' => 'select',
    'renderType' => 'selectTree',
    'foreign_table' => 'sys_category',
    'treeConfig' ...
]

After:

'config' => [
    'type' => 'category',
    'relationship' => 'oneToOne'
]

Backend editing is faster with tca type "category" and the flash message appears not that often anymore.

Actions #24

Updated by Alexander Vogt about 1 year ago

  • Related to Bug #99455: "Navigation loading error. Got unexpected response from the server. Please check logs for details." when category tree is still loading while saving added
Actions #25

Updated by André Buchmann about 1 year ago

A coworker notified me about this issue in a project when using the fileadmin with many images. The customer is very annoyed by those flash messages when they edit their content.

By the way: the same error Message is triggered for the page tree and the file tree as they both use the SvgTree class.

The problem is, that the editors select the image in the modal faster than the tree is built. When the image is selected the request is canceled, and the JS triggers the flash message. Error still exists in TYPO3 11.5.26-dev and 12.3.0-dev.

This can be easily tested with a plain TYPO3 11/12 and one image by slowing down the response of the controller with sleep(10) here: https://github.com/TYPO3/typo3/blob/11.5/typo3/sysext/backend/Classes/Controller/FileStorage/TreeController.php#L57

Actions #26

Updated by André Buchmann about 1 year ago

  • Related to Bug #100219: Get "Navigation loading error. Got unexpected response from the server. Please check logs for details." when fetch request is canceled. - Part 2 added
Actions #27

Updated by André Buchmann about 1 year ago

Dear watchers please see follow up ticket. This one is closed.

https://forge.typo3.org/issues/100219

Actions

Also available in: Atom PDF