Increase cURL timeout value if possible
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3548035. --> Reported by: [majorrobot](https://www.drupal.org/user/168019) Related to !21 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Many times, when using a Gemini 2.5 Flash or Gemini 2.5 Pro, cURL throws an error: </p> <p><code> [error]&nbsp; AI migration failed for url https://accessibility.civicactions.com/posts/delivering-digital-first-turning-21st-century-idea-into-action: Error invoking model response: cURL error 28: Operation timed out after 60002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://generativelanguage.googleapis.com/v1/models/gemini-2.5-flash:generateContent </code></p> <p>In theses instances, the AI query does not complete, and content is not migrated. Because the AI query can happen twice during each url's migration, it's possible to get an error during the "count" part of the migration, and then get a success during the "actual" migration. In that case, the migration would be migrated anyway.</p> <p>cURL's default timeout is 300 seconds, and we're seeing it timeout at 60s. So, the setting is getting configured somewhere. I suspect somewhere in the Gemini provider module or in the AI module itself. </p> <p>Please find where the timeout is getting configured and override it in our module, if possible.</p>
issue