Error 500 Internal Server Error

GET http://stest.castor.io/api/reservation/booking/102991

Forwarded to ErrorController (71dda6)

ApiReservationBookingController :: index

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\ApiReservationBookingController::index"
_firewall_context
"security.firewall.map.context.api"
_remove_csp_headers
true
_route
"app_api_reservation_booking"
_route_params
[
  "res" => "102991"
]
_security_firewall_run
"_security_api"
_stopwatch_token
"7fd836"
res
"102991"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
connection
"close"
content-length
""
content-type
""
from
"gptbot(at)openai.com"
host
"stest.castor.io"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)"
x-forwarded-for
"74.7.227.27"
x-forwarded-host
"stest.castor.io"
x-forwarded-port
"443"
x-forwarded-proto
"https"
x-forwarded-ssl
"on"
x-openai-host-hash
"887963807"
x-original-uri
"/api/reservation/booking/102991"
x-php-ob-level
"0"
x-real-ip
"74.7.227.27"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Thu, 11 Dec 2025 11:25:03 GMT"
vary
"Accept"
x-debug-exception
"Warning%3A%20foreach%28%29%20argument%20must%20be%20of%20type%20array%7Cobject%2C%20null%20given"
x-debug-exception-file
"%2Fvar%2Fwww%2Fproject%2Fsrc%2FController%2FApiReservationBookingController.php:27"
x-debug-token
"2ea2ff"
x-debug-token-link
"http://stest.castor.io/_profiler/71dda6"
x-previous-debug-token
"71dda6"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session 1

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

1 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:41
[
  [
    "file" => "/var/www/project/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 41
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/security-http/Firewall/AccessListener.php"
    "line" => 78
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 46
    "function" => "authenticate"
    "class" => "Symfony\Component\Security\Http\Firewall\AccessListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/security-http/Firewall/AbstractListener.php"
    "line" => 26
    "function" => "authenticate"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 76
    "function" => "__invoke"
    "class" => "Symfony\Component\Security\Http\Firewall\AbstractListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/security-http/Firewall.php"
    "line" => 95
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 116
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 158
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/project/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/project/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
API_ENDPOINT_WA
"/lagerbonn/warenbewegungen"
API_HOST_LVR
"https://sappi-p.lvr.de"
APP_ENV
"dev"
APP_SECRET
"4d9ecf0160d54989a9445f707aa57152"
CRYPT_SECRET
"ghr8hg7584t8734r623r5erd27356r438765refe38fwdtzfdewuf8"
DATABASE_URL
"mysql://rifa:pfRifaDB2023@database_apitest:3306/apitest"
DOMAIN
"stest.castor.io,om2-api.logistic-portal.de"
EMAIL
"cc@castor.io"
JWT_PASSPHRASE
"9d7a92c1a237ebcff5e860a1ca52876d08d65bae6e24faf2633ce5cb00ae3c7e"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET
"vhiusfbvrw97f37zr74zr7fz4r476r7625e61r2edswsdfxewdx236765wq6237w"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
LOCK_DSN
"flock"
LVR_API_PASS
"PULSAR#1"
LVR_API_USER
"Z135_LAGR100"
MASTER_PASSWORD
"pass"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=1"
MYSQL_ROOT_PW
"pfRootRifa2023"
MYSQL_USER
"rifa"
MYSQL_USER_PW
"pfRifaDB2023"
OM_ENDPOINT
"https://omtest.castor.io/api/orders/saps"
OM_ENDPOINT_ARTS
"https://om2.logistic-portal.de/api/arts/saps"
TRUSTED_PROXIES
"127.0.0.1,REMOTE_ADDR,localhost"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
""
CONTENT_TYPE
""
DOCUMENT_ROOT
"/var/www/project/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GPG_KEYS
"39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC"
HOME
"/var/www"
HOSTNAME
"0eb5336fbcc9"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_CONNECTION
"close"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"stest.castor.io"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)"
HTTP_X_FORWARDED_FOR
"74.7.227.27"
HTTP_X_FORWARDED_HOST
"stest.castor.io"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_SSL
"on"
HTTP_X_OPENAI_HOST_HASH
"887963807"
HTTP_X_ORIGINAL_URI
"/api/reservation/booking/102991"
HTTP_X_REAL_IP
"74.7.227.27"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.2.11.tar.xz.asc"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_INI_DIR
"/usr/local/etc/php"
PHP_LDFLAGS
"-Wl,-O1 -pie"
PHP_SELF
"/index.php"
PHP_SHA256
"29af82e4f7509831490552918aad502697453f0869a579ee1b80b08f9112c5b8"
PHP_URL
"https://www.php.net/distributions/php-8.2.11.tar.xz"
PHP_VERSION
"8.2.11"
PWD
"/var/www/project"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.19.0.4"
REMOTE_PORT
"50820"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1765452303
REQUEST_TIME_FLOAT
1765452303.1519
REQUEST_URI
"/api/reservation/booking/102991"
SCRIPT_FILENAME
"/var/www/project/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.19.0.5"
SERVER_NAME
""
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.14.2"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MASTER_PASSWORD,MYSQL_USER,MYSQL_USER_PW,MYSQL_ROOT_PW,DOMAIN,EMAIL,JWT_SECRET,CRYPT_SECRET,TRUSTED_PROXIES,LOCK_DSN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,API_HOST_LVR,API_ENDPOINT_WA,LVR_API_USER,LVR_API_PASS,OM_ENDPOINT,OM_ENDPOINT_ARTS"
USER
"www-data"
argc
0
argv
[]

Sub Requests 1

ErrorController (token = 71dda6)

Key Value
_controller
"error_controller"
_stopwatch_token
"2aa4c8"
exception
ErrorException {#681
  #message: "Warning: foreach() argument must be of type array|object, null given"
  #code: 0
  #file: "/var/www/project/src/Controller/ApiReservationBookingController.php"
  #line: 27
  #severity: E_WARNING
  trace: {
    /var/www/project/src/Controller/ApiReservationBookingController.php:27 {
      App\Controller\ApiReservationBookingController->index(string $res, ReservationRepository $reservationRepository, Request $request, EntityManagerInterface $em, EventDispatcherInterface $dispatcher): Response …
      › $reservation = $reservationRepository->findBy(["resNo" => $resNo])[0];foreach($body as $pack){    /** @var ArticleBooking $artBooking */
    }
    /var/www/project/vendor/symfony/http-kernel/HttpKernel.php:182 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $res: "102991"
        $reservationRepository: App\Repository\ReservationRepository {#567 …}
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
        $em: ContainerBOlJie7\EntityManagerGhostEbeb667 {#370 …}
        $dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#163 …}
      }
    }
    /var/www/project/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
        $type: 1
      }
    }
    /var/www/project/vendor/symfony/http-kernel/Kernel.php:197 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /var/www/project/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
      }
    }
    /var/www/project/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/project/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/project/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#80 …9}