gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 16 forks source link

cURL error 28: Operation timed out after 30001 milliseconds #64

Closed codemongerr closed 6 months ago

codemongerr commented 6 months ago

Dependencies

Description of the issue:

cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received see https://curl.haxx.se/libcurl/c/libcurl-errors.html

When creating records via queue job, sometimes the insert operation fails with error above and it results in partial and/or duplicate data insertion.

Note: The queue job itself have higher timeout set.

Expected Behavior:

Is there a way to increase the timeout for FM connection ?

Smef commented 6 months ago

This is your request timing out after 30 seconds. I'd do some investigating to see why a single API request is taking more than 30 seconds to execute, which is very, very long and would be something you should really try to avoid.

If it's a long running script, find, or FM just being slow and there isn't anything you an do about that side you'll need to adjust your timeout in your Laravel app web server config, FileMaker Server web server config, PHP config, or possibly other places depending on your setup. This wouldn't be something you can control through your app directly or this package.

codemongerr commented 6 months ago

@Smef - Thanks for the update.