Error 500 Internal Server Error

POST https://roma-bot.skylex.work/support-bot

Forwarded to ErrorController (69611e)

SupportBotController :: botAction

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\SupportBotController::botAction"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"support_bot"
_route_params
[]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[]
_stopwatch_token
"8ef48a"

Request Headers

Header Value
accept-encoding
"gzip, deflate"
connection
"keep-alive"
content-length
"362"
content-type
"application/json"
host
"roma-bot.skylex.work"
x-php-ob-level
"1"

Request Content

Pretty

{
    "update_id": 634906409,
    "message": {
        "message_id": 22,
        "from": {
            "id": 409212615,
            "is_bot": false,
            "first_name": "Oleksandr",
            "last_name": "Gansky",
            "username": "alexgansky",
            "language_code": "uk"
        },
        "chat": {
            "id": 409212615,
            "first_name": "Oleksandr",
            "last_name": "Gansky",
            "username": "alexgansky",
            "type": "private"
        },
        "date": 1776546720,
        "text": "asd ;kajsnd alkjsdfl kasjdflka jsdhf asdf"
    }
}

Raw

{"update_id":634906409,
"message":{"message_id":22,"from":{"id":409212615,"is_bot":false,"first_name":"Oleksandr","last_name":"Gansky","username":"alexgansky","language_code":"uk"},"chat":{"id":409212615,"first_name":"Oleksandr","last_name":"Gansky","username":"alexgansky","type":"private"},"date":1776546720,"text":"asd ;kajsnd alkjsdfl kasjdflka jsdhf asdf"}}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Sun, 19 Apr 2026 03:09:21 GMT"
set-cookie
[
  "main_deauth_profile_token=69611e; path=/; secure; httponly; samesite=lax"
  "main_auth_profile_token=deleted; expires=Sat, 19 Apr 2025 03:09:20 GMT; Max-Age=0; path=/; httponly"
]
vary
"Accept"
x-debug-exception
"Attempted%20to%20load%20class%20%22SupportRoles%22%20from%20namespace%20%22App%5CSecurity%22.%0ADid%20you%20forget%20a%20%22use%22%20statement%20for%20another%20namespace%3F"
x-debug-exception-file
"%2Fvar%2Fwww%2Froma%2Freleases%2F4%2Fsrc%2FRepository%2FUserRepository.php:39"
x-debug-token
"6b6705"
x-debug-token-link
"https://roma-bot.skylex.work/_profiler/69611e"
x-previous-debug-token
"69611e"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

Key Value
main_auth_profile_token
Symfony\Component\HttpFoundation\Cookie {#579
  #expire: 1
  #path: "/"
  -sameSite: null
  -secureDefault: true
  #name: "main_auth_profile_token"
  #value: null
  #domain: null
  #secure: false
  #httpOnly: true
  -raw: false
  -partitioned: false
}
main_deauth_profile_token
Symfony\Component\HttpFoundation\Cookie {#214
  #expire: 0
  #path: "/"
  -sameSite: "lax"
  -secureDefault: true
  #name: "main_deauth_profile_token"
  #value: "69611e"
  #domain: null
  #secure: null
  #httpOnly: true
  -raw: false
  -partitioned: false
}

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"0ad7a709ef90a2776a773dca375e7db6"
APP_SHARE_DIR
"var/share"
BOT_SUPPORT_TOKEN
"8743354237:AAGTYhfe2WcNHBTkgk4a0Ser6NyzvSpnh0Y"
DATABASE_URL
"mysql://roma:bhp^FO(6foTUF@127.0.0.1:3306/roma?serverVersion=8.0.32&charset=utf8mb4"
DEFAULT_URI
"http://localhost"
MAILER_DSN
"null://null"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APP_PROJECT_DIR
"/var/www/roma/releases/4"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/var/www/roma/releases/4"
]
CONTENT_LENGTH
"362"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/var/www/roma/releases/4/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTPS
"on"
HTTP_ACCEPT_ENCODING
"gzip, deflate"
HTTP_CONNECTION
"keep-alive"
HTTP_CONTENT_LENGTH
"362"
HTTP_CONTENT_TYPE
"application/json"
HTTP_HOST
"roma-bot.skylex.work"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"91.108.5.38"
REMOTE_PORT
"50828"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1776568161
REQUEST_TIME_FLOAT
1776568161.5249
REQUEST_URI
"/support-bot"
SCRIPT_FILENAME
"/var/www/roma/releases/4/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"173.242.60.20"
SERVER_NAME
"roma-bot.skylex.work"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.30.0"
SYMFONY_DOTENV_PATH
"/var/www/roma/releases/4/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_SHARE_DIR,DEFAULT_URI,MESSENGER_TRANSPORT_DSN,MAILER_DSN,BOT_SUPPORT_TOKEN,APP_DEBUG,DATABASE_URL"
USER
"www-data"

Sub Requests 1

ErrorController (token = 69611e)

Key Value
_controller
"error_controller"
_stopwatch_token
"4b03fd"
exception
Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#1119
  #message: """
    Attempted to load class "SupportRoles" from namespace "App\Security".\n
    Did you forget a "use" statement for another namespace?
    """
  #code: 0
  #file: "/var/www/roma/releases/4/src/Repository/UserRepository.php"
  #line: 39
  trace: {
    /var/www/roma/releases/4/src/Repository/UserRepository.php:39 {
      App\Repository\UserRepository::{closure:App\Repository\UserRepository::findSupportStaffOrderById():39} …
      ›     $users,    static fn (User $u) => \in_array(SupportRoles::STAFF, $u->getRoles(), true)));
    }
    App\Repository\UserRepository::{closure:App\Repository\UserRepository::findSupportStaffOrderById():39}() {}
    /var/www/roma/releases/4/src/Repository/UserRepository.php:37 {
      App\Repository\UserRepository->findSupportStaffOrderById(): array …
      › $users = $this->findAll();$staff = array_values(array_filter(    $users,
    }
    /var/www/roma/releases/4/src/Business/Support/TicketAssignmentService.php:22 {
      App\Business\Support\TicketAssignmentService->pickNextAssignee(): User …
      › {    $staff = $this->userRepository->findSupportStaffOrderById();    if ($staff === []) {
    }
    /var/www/roma/releases/4/src/Business/Support/SupportTicketService.php:29 {
      App\Business\Support\SupportTicketService->createTicketFromBot(Client $client, string $subject, string $body): Ticket …
      › 
      › $assignee = $this->ticketAssignmentService->pickNextAssignee();}
    /var/www/roma/releases/4/src/Business/ClientCommands/CreateTicketFlowCommand.php:173 {
      App\Business\ClientCommands\CreateTicketFlowCommand->handleBody(TelegramRequest $request, Client $client): void …
      › 
      › $ticket = $this->supportTicketService->createTicketFromBot($client, $subject, $body);$client->resetBotConversation();
    }
    /var/www/roma/releases/4/src/Business/ClientCommands/CreateTicketFlowCommand.php:53 {
      App\Business\ClientCommands\CreateTicketFlowCommand->execute(TelegramRequest $request): TelegramResponse …
      › if ($state === Client::BOT_STATE_AWAITING_BODY) {    $this->handleBody($request, $client);}
    /var/www/roma/releases/4/src/Business/Bot/BotHandler.php:42 {
      App\Business\Bot\BotHandler->handle(TelegramRequest $request): TelegramResponse …
      › if ($isApplicable) {    return $command->execute($request);}
    }
    /var/www/roma/releases/4/src/Controller/SupportBotController.php:28 {
      App\Controller\SupportBotController->botAction(Request $request, BotHandlerInterface $supportBot): Response …
      › /** @var TelegramResponse $response */$response = $supportBot->handle($tgRequest);}
    /var/www/roma/releases/4/vendor/symfony/http-kernel/HttpKernel.php:183 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/roma/releases/4/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) {
    }
    /var/www/roma/releases/4/vendor/symfony/http-kernel/Kernel.php:193 {
      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 {
    }
    /var/www/roma/releases/4/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);}
    /var/www/roma/releases/4/vendor/autoload_runtime.php:32 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/roma/releases/4/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/roma/releases/4/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Processor\DebugProcessor {#148
  -records: [
    2 => [
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.534+00:00"
        "message" => "Matched route "{route}"."
        "priority" => 200
        "priorityName" => "INFO"
        "context" => [
          "route" => "support_bot"
          "route_parameters" => [
            "_route" => "support_bot"
            "_controller" => "App\Controller\SupportBotController::botAction"
          ]
          "request_uri" => "https://roma-bot.skylex.work/support-bot"
          "method" => "POST"
        ]
        "channel" => "request"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.534+00:00"
        "message" => "Checking for authenticator support."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticators" => 0
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.538+00:00"
        "message" => "Connecting with parameters {params}"
        "priority" => 200
        "priorityName" => "INFO"
        "context" => [
          "params" => [
            "driver" => "pdo_mysql"
            "idle_connection_ttl" => 600
            "host" => "127.0.0.1"
            "port" => 3306
            "user" => "roma"
            "password" => "<redacted>"
            "driverOptions" => []
            "defaultTableOptions" => []
            "dbname" => "roma"
            "serverVersion" => "8.0.32"
            "charset" => "utf8mb4"
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.539+00:00"
        "message" => "Executing statement: {sql} (parameters: {params}, types: {types})"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.tg_id AS tg_id_3, t0.username AS username_4, t0.bot_state AS bot_state_5, t0.bot_draft AS bot_draft_6 FROM client t0 WHERE t0.tg_id = ? LIMIT 1"
          "params" => [
            1 => "409212615"
          ]
          "types" => [
            1 => Doctrine\DBAL\ParameterType {#888
              +name: "STRING"
            }
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.541+00:00"
        "message" => "Executing statement: {sql} (parameters: {params}, types: {types})"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.tg_id AS tg_id_3, t0.username AS username_4, t0.bot_state AS bot_state_5, t0.bot_draft AS bot_draft_6 FROM client t0 WHERE t0.tg_id = ? LIMIT 1"
          "params" => [
            1 => "409212615"
          ]
          "types" => [
            1 => Doctrine\DBAL\ParameterType {#888}
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.541+00:00"
        "message" => "Executing statement: {sql} (parameters: {params}, types: {types})"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.tg_id AS tg_id_3, t0.username AS username_4, t0.bot_state AS bot_state_5, t0.bot_draft AS bot_draft_6 FROM client t0 WHERE t0.tg_id = ? LIMIT 1"
          "params" => [
            1 => "409212615"
          ]
          "types" => [
            1 => Doctrine\DBAL\ParameterType {#888}
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.541+00:00"
        "message" => "Executing statement: {sql} (parameters: {params}, types: {types})"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT t0.id AS id_1, t0.code AS code_2, t0.name AS name_3, t0.is_final AS is_final_4, t0.sort_order AS sort_order_5 FROM ticket_status t0 WHERE t0.code = ? LIMIT 1"
          "params" => [
            1 => "NEW"
          ]
          "types" => [
            1 => Doctrine\DBAL\ParameterType {#888}
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.544+00:00"
        "message" => "Executing query: {sql}"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT t0.username AS username_1, t0.username_canonical AS username_canonical_2, t0.email AS email_3, t0.email_canonical AS email_canonical_4, t0.enabled AS enabled_5, t0.salt AS salt_6, t0.password AS password_7, t0.last_login AS last_login_8, t0.confirmation_token AS confirmation_token_9, t0.password_requested_at AS password_requested_at_10, t0.roles AS roles_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13, t0.id AS id_14, t0.tg_id AS tg_id_15 FROM user t0"
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1776568161
        "timestamp_rfc3339" => "2026-04-19T03:09:21.545+00:00"
        "message" => "Uncaught PHP Exception Error: "Class "App\Security\SupportRoles" not found" at UserRepository.php line 39"
        "priority" => 500
        "priorityName" => "CRITICAL"
        "context" => [
          "exception" => Error {#1085
            #message: "Class "App\Security\SupportRoles" not found"
            #code: 0
            #file: "/var/www/roma/releases/4/src/Repository/UserRepository.php"
            #line: 39
            trace: {
              /var/www/roma/releases/4/src/Repository/UserRepository.php:39 {
                App\Repository\UserRepository::{closure:App\Repository\UserRepository::findSupportStaffOrderById():39} …
                ›     $users,    static fn (User $u) => \in_array(SupportRoles::STAFF, $u->getRoles(), true)));
              }
              App\Repository\UserRepository::{closure:App\Repository\UserRepository::findSupportStaffOrderById():39}() {}
              /var/www/roma/releases/4/src/Repository/UserRepository.php:37 {
                App\Repository\UserRepository->findSupportStaffOrderById(): array …
                › $users = $this->findAll();$staff = array_values(array_filter(    $users,
              }
              /var/www/roma/releases/4/src/Business/Support/TicketAssignmentService.php:22 {
                App\Business\Support\TicketAssignmentService->pickNextAssignee(): User …
                › {    $staff = $this->userRepository->findSupportStaffOrderById();    if ($staff === []) {
              }
              /var/www/roma/releases/4/src/Business/Support/SupportTicketService.php:29 {
                App\Business\Support\SupportTicketService->createTicketFromBot(Client $client, string $subject, string $body): Ticket …
                › 
                › $assignee = $this->ticketAssignmentService->pickNextAssignee();}
              /var/www/roma/releases/4/src/Business/ClientCommands/CreateTicketFlowCommand.php:173 {
                App\Business\ClientCommands\CreateTicketFlowCommand->handleBody(TelegramRequest $request, Client $client): void …
                › 
                › $ticket = $this->supportTicketService->createTicketFromBot($client, $subject, $body);$client->resetBotConversation();
              }
              /var/www/roma/releases/4/src/Business/ClientCommands/CreateTicketFlowCommand.php:53 {
                App\Business\ClientCommands\CreateTicketFlowCommand->execute(TelegramRequest $request): TelegramResponse …
                › if ($state === Client::BOT_STATE_AWAITING_BODY) {    $this->handleBody($request, $client);}
              /var/www/roma/releases/4/src/Business/Bot/BotHandler.php:42 {
                App\Business\Bot\BotHandler->handle(TelegramRequest $request): TelegramResponse …
                › if ($isApplicable) {    return $command->execute($request);}
              }
              /var/www/roma/releases/4/src/Controller/SupportBotController.php:28 {
                App\Controller\SupportBotController->botAction(Request $request, BotHandlerInterface $supportBot): Response …
                › /** @var TelegramResponse $response */$response = $supportBot->handle($tgRequest);}
              /var/www/roma/releases/4/vendor/symfony/http-kernel/HttpKernel.php:183 {
                Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
                › // call controller$response = $controller(...$arguments);}
              /var/www/roma/releases/4/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) {
              }
              /var/www/roma/releases/4/vendor/symfony/http-kernel/Kernel.php:193 {
                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 {
              }
              /var/www/roma/releases/4/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
                Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
                › {    $response = $this->kernel->handle($this->request);}
              /var/www/roma/releases/4/vendor/autoload_runtime.php:32 {
                require_once …
                ›         ->getRunner($app)        ->run());
              }
              /var/www/roma/releases/4/public/index.php:5 {
                › 
                › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
                  "/var/www/roma/releases/4/vendor/autoload_runtime.php"
                }
              }
            }
          }
        ]
        "channel" => "request"
      ]
    ]
  ]
  -errorCount: [
    2 => 1
  ]
  -requestStack: Symfony\Component\HttpKernel\Debug\VirtualRequestStack {#147 …}
}