hmm, I am still get the error like the following in drupal/ai_provider_azure:1.0.x-dev@dev
#0 /var/www/html/vendor/openai-php/client/src/Responses/Chat/CreateResponse.php(48): array_map(Object(Closure), NULL)
#1 /var/www/html/vendor/openai-php/client/src/Resources/Chat.php(35): OpenAI\Responses\Chat\CreateResponse::from(Array, Object(OpenAI\Responses\Meta\MetaInformation))
#2 /var/www/html/web/modules/contrib/ai_provider_azure/src/Plugin/AiProvider/AzureProvider.php(346): OpenAI\Resources\Chat->create(Array)
#3 [internal function]: Drupal\ai_provider_azure\Plugin\AiProvider\AzureProvider->chat(Object(Drupal\ai\OperationType\Chat\ChatInput), 'openai-gpt-4o', Array)
#4 /var/www/html/web/modules/contrib/ai/src/Plugin/ProviderProxy.php(193): ReflectionMethod->invokeArgs(Object(Drupal\ai_provider_azure\Plugin\AiProvider\AzureProvider), Array)
#5 /var/www/html/web/modules/contrib/ai/src/Plugin/ProviderProxy.php(103): Drupal\ai\Plugin\ProviderProxy->wrapperCall(Object(ReflectionMethod), Array)
#6 /var/www/html/web/modules/contrib/ai_image_alt_text/src/Controller/GenerateAltText.php(139): Drupal\ai\Plugin\ProviderProxy->__call('chat', Array)
#7 [internal function]: Drupal\ai_image_alt_text\Controller\GenerateAltText->generate(Object(Drupal\file\Entity\File), 'en')
#8 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#9 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#12 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#14 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /var/www/html/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /var/www/html/web/modules/contrib/shield/src/ShieldMiddleware.php(263): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /var/www/html/web/modules/contrib/shield/src/ShieldMiddleware.php(130): Drupal\shield\ShieldMiddleware->bypass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /var/www/html/web/modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#30 {main}
shasha821110 β created an issue.
same issue happen in Azure OpenAI ChatGPT-4o.
Switch to OpenAI works good.
thanks guys. it turns out it also related to something else.
I did reinstall everything and works now.
I got the same issue, how did you fixed it makbay?
shasha821110 β created an issue.
patch works for me. I got the same error.
shasha821110 β created an issue.
the change from 'FALSE' to 'false' works for me. Thanks.
tested the patch and seems works good so far. Thanks Marcus.
shasha821110 β created an issue.
Vote +
Delete should be the last one in the tab.
same issue here.
Drupal 10.3.7. Drush: 13.2.0
Thanks @aalfthecat.
With that module installed, still saw the error.
And where I can find the 'Automate Chain Type' from this video: https://www.youtube.com/watch?v=PmChGwzilck
Appreciate the help.
Try to install both AI Automator (Deprecated) (Deprecated) and AI Automators module.
Got the following error when creating new Chain type:
TypeError: Drupal\ai_automators\AiAutomatorEntityModifier::__construct(): Argument #2 ($processes) must be of type Drupal\ai_automators\PluginManager\AiAutomatorFieldProcessManager, Drupal\ai_interpolator\PluginManager\AiInterpolatorFieldProcessManager given, called in /code/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\ai_automators\AiAutomatorEntityModifier->__construct() (line 60 of modules/contrib/ai/modules/ai_automators/src/AiAutomatorEntityModifier.php).
Confused for which submodule should I choose?
Thanks.
same issue here. Newer API Key seems make error and all the function not working in openAI module.
here are some new comments we found as it happen again.
[pool www] pid 30 script_filename = /code/web//index.php [0x00007f1a27016b30] rename() /code/web/core/lib/Drupal/Core/File/FileSystem.php:391 [0x00007f1a27016a40] move() /code/web/core/lib/Drupal/Core/File/FileSystem.php:512 [0x00007f1a27016970] saveData() /code/web/modules/contrib/advagg/src/Asset/AssetOptimizer.php:291 [0x00007f1a27016870] writeFile() /code/web/modules/contrib/advagg/src/Asset/CssOptimizer.php:99 [0x00007f1a270167a0] optimizeFile() /code/web/modules/contrib/advagg/src/Asset/AssetOptimizer.php:255 [0x00007f1a270166e0] scanFile() /code/web/modules/contrib/advagg/src/Asset/AssetOptimizer.php:169 [0x00007f1a270165e0] processAssetArray() /code/web/modules/contrib/advagg/advagg.module:114 [0x00007f1a27016540] advagg_css_alter() /code/web/core/lib/Drupal/Core/Extension/ModuleHandler.php:562 [0x00007f1a270163e0] alter() /code/web/core/lib/Drupal/Core/Asset/AssetResolver.php:159 [0x00007f1a27016260] getCssAssets() /code/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php:311 [0x00007f1a27016090] processAssetLibraries() /code/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php:157 [0x00007f1a27015fa0] processAttachments() /code/web/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php:94 [0x00007f1a27015ec0] processAttachments() /code/web/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php:45 [0x00007f1a27015dc0] onRespond() /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:142 [0x00007f1a27015d30] call_user_func() /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:142 [0x00007f1a27015c10] dispatch() /code/vendor/symfony/http-kernel/HttpKernel.php:202 [0x00007f1a27015b60] filterResponse() /code/vendor/symfony/http-kernel/HttpKernel.php:190 [0x00007f1a27015a80] handleRaw() /code/vendor/symfony/http-kernel/HttpKernel.php:81 [0x00007f1a270159b0] handle() /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php:58 [0x00007f1a270158f0] handle() /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:48
It looks like big_pipe and advagg_css_alter() are two that slow down and trigger the timeout error.
shasha821110 β created an issue.
Thanks mtalt, I used another way to fix the issue but thanks for the patch information.
I will keep in mind and will test if having time.
Thanks.
hey Mtalt,
Sorry for the late reply. Yes the site is using CommonMap view with AJAX.
One thing i found it fix my issue is using the following to wrap the location page javascript. Then the problem seems go away.
if (typeof (context.location) !== 'undefined') {});
Drupal core upgrade the VIEW recently.
That's the ONLY thing i can think of.
Thanks,
shasha821110 β created an issue.
shasha821110 β created an issue.