I
I
Ingvar Von Bjork2019-11-05 16:40:03
1C-Bitrix
Ingvar Von Bjork, 2019-11-05 16:40:03

How to fix "Incorrect server response" error?

When uploading any file up to about 5 MB to any element of the infoblock, the error "Incorrect server response" occurs. On machines with Windows OS, the problem appears extremely rarely, on Linux - almost constantly.
I contacted Bitrix technical support, who was able to identify the problem in /bitrix/modules/main/tools/upload.php

$receiver = new \Bitrix\Main\UI\FileInputReceiver($_POST, $_POST["signature"]);

returns an empty POST for small files. Bitrix advised to contact the hoster. The hoster could not identify the problem. Bitrix technical support has also merged.
Actually now it is time to turn to the forums. Can anyone suggest anything about solving the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ingvar Von Björk, 2019-11-26
@DeboshiR

The problem was that at one time the site created a ServiceWorker to display the page without an internet connection. This service worker loaded a bunch of left files and previous $_POST files in the background. the error was knocked out precisely because $_POST['signature'] == NULL. That is why resetting the page cache allowed the file to be loaded.
I solved the problem by simply disabling the ServiceWorker for the admin part.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question