cURL error 56: Recv failure: Connection was reset

0

I'm getting data from a csv (approx 9450 rows), and sending it by Guzzle from a Laravel 5.4 to a Lumen 5.4, but when I try to do it, I get this error "cURL error 56: Recv failure: Connection was reset"

I use 2 local servers, the native of laravel (php artisan serve, for the frontend), Ampps 3.6 for the lumen (backend) and PostgreSQL database 9.4.

Any suggestions?

    
asked by falconshady 26.08.2018 в 03:12
source

2 answers

0

Check which curl port you use and if it is blocked by the firewall. It also verifies if the port of the application accepts requests. By using laravel's development server you may be blocking requests.

    
answered by 26.08.2018 в 03:47
0

I've already solved it!

The issue was that he was putting a nested for that generated too many rows and therefore exceeded the timeout response of the curl

    
answered by 26.08.2018 в 05:27