Fatal error: Uncaught Laminas\Uri\Exception\InvalidUriException: URI is not valid and cannot be converted into a string in /app/vendor/laminas/laminas-uri/src/Uri.php:382
Stack trace:
#0 /app/vendor/laminas/laminas-http/src/Header/AbstractLocation.php(103): Laminas\Uri\Uri->toString()
#1 /app/vendor/laminas/laminas-http/src/Header/AbstractLocation.php(138): Laminas\Http\Header\AbstractLocation->getUri()
#2 /app/vendor/laminas/laminas-mvc/src/ResponseSender/AbstractResponseSender.php(27): Laminas\Http\Header\AbstractLocation->toString()
#3 /app/vendor/laminas/laminas-mvc/src/ResponseSender/PhpEnvironmentResponseSender.php(22): Laminas\Mvc\ResponseSender\AbstractResponseSender->sendHeaders()
#4 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\ResponseSender\PhpEnvironmentResponseSender->__invoke()
#5 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners()
#6 /app/vendor/laminas/laminas-mvc/src/SendResponseListener.php(86): Laminas\EventManager\EventManager->triggerEvent()
#7 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\SendResponseListener->sendResponse()
#8 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners()
#9 /app/vendor/laminas/laminas-mvc/src/Application.php(328): Laminas\EventManager\EventManager->triggerEvent()
#10 /app/public/index.php(31): Laminas\Mvc\Application->run()
#11 {main}
thrown in /app/vendor/laminas/laminas-uri/src/Uri.php on line 382