redirect_url missing after http code 503

Created on 5 November 2024, 3 months ago

Drupal 10.3.6, views_data_export v1.4, xls_serialization v1.5. I export using a "data export" on a view which gets a 503 after about 10 minutes. There should be 50K rows in the output. I tried batch sizes ranging from 5 to 10000.

So it ends in an AJAX error and when I go to the "error page", I see following in the Recent Logs:

Warning: Undefined array key "redirect_url" in Drupal\views_data_export\Plugin\views\display\DataExport::finishBatch() (regel 889 van /data/code/application/www/modules/contrib/views_data_export/src/Plugin/views/display/DataExport.php)
#0 /data/code/application/www/core/includes/bootstrap.inc(166): _drupal_error_handler_real(2, 'Undefined array...', '/data/code/jobb...', 889)
#1 /data/code/application/www/modules/contrib/views_data_export/src/Plugin/views/display/DataExport.php(889): _drupal_error_handler(2, 'Undefined array...', '/data/code/jobb...', 889)
#2 /data/code/application/www/core/includes/batch.inc(457): Drupal\views_data_export\Plugin\views\display\DataExport::finishBatch(false, Array, Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup))
#3 /data/code/application/www/core/includes/batch.inc(99): _batch_finished()
#4 /data/code/application/www/core/modules/system/src/Controller/BatchController.php(52): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
#5 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
#6 /data/code/application/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#7 /data/code/application/www/core/lib/Drupal/Core/Render/Renderer.php(640): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#8 /data/code/application/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#9 /data/code/application/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#10 /data/code/application/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /data/code/application/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /data/code/application/www/modules/contrib/acm_idm_integration/src/RedirectMiddleware.php(46): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Drupal\acm_idm_integration\RedirectMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /data/code/application/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /data/code/application/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /data/code/application/www/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /data/code/application/www/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /data/code/application/www/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /data/code/application/www/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#25 {main}

It would benefit from a check on "$results['redirect_url']".

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024