D
D
dfhusfhgsuo32020-08-12 03:34:51
PHP
dfhusfhgsuo3, 2020-08-12 03:34:51

How can file_get_contents failed to open stream: HTTP request failed on successful request?

Hello.

When adding a large file (more than 1.5 GB) to the outgoing server (also our own), an error occurs file_get_contents failed to open stream: HTTP request failed

The essence of the script:
The file is loaded in 20 MB chunks. Everything is super with small files.

When uploading a large file: everything is also super, the file is loaded without problems, the line is loaded (where our file_get_contents request occurs) fulfills the request -> the file server accepts the request -> does all the necessary operations. It remains to get a response, but file_get_contents failed to open stream: HTTP request failed.

The script needs a successful response in order to complete its work. The work was completed successfully, but what answer did I write above.

All possible restrictions in php, ngixn and others have been removed. I've been fiddling with this problem for a day now, I'll be grateful for any hint..

Laravel framework, maybe this could be the reason.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question