Error 500 Internal Server Error

GET https://book.api.7ap.tech/api_v2/login?p=api_v2%2Flogin

ErrorController

Request

GET Parameters

Key Value
p
"api_v2/login"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"error_controller"
_stopwatch_token
"bc0e7e"
exception
InvalidArgumentException {#544
  #message: "The controller for URI "/api_v2/login" is not callable: Environment variable not found: "encrypt_secret"."
  #code: 0
  #file: "/var/www/ebook_api/vendor/symfony/http-kernel/Controller/ControllerResolver.php"
  #line: 76
  -previous: Symfony\Component\DependencyInjection\Exception\EnvNotFoundException {#591 …}
  trace: {
    /var/www/ebook_api/vendor/symfony/http-kernel/Controller/ControllerResolver.php:76 {
      Symfony\Component\HttpKernel\Controller\ControllerResolver->getController(Request $request): callable|false …
      › } catch (\InvalidArgumentException $e) {    throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable: ', $request->getPathInfo()).$e->getMessage(), 0, $e);}
    }
    /var/www/ebook_api/vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:36 {
      Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController(Request $request): callable|false …
      › try {    return $this->resolver->getController($request);} finally {
    }
    /var/www/ebook_api/vendor/symfony/http-kernel/HttpKernel.php:146 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // load controllerif (false === $controller = $this->resolver->getController($request)) {    throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
    }
    /var/www/ebook_api/vendor/symfony/http-kernel/HttpKernel.php:74 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->handleRaw($request, $type);} catch (\Throwable $e) {
    }
    /var/www/ebook_api/vendor/symfony/http-kernel/Kernel.php:184 {
      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/ebook_api/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
    }
    /var/www/ebook_api/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/ebook_api/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/ebook_api/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#130 …9}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3"
connection
"keep-alive"
content-length
"51"
content-type
"text/plain;charset=utf-8"
cookie
"PHPSESSID=58i0sutses8h6jogu65ikbbkke"
host
"book.api.7ap.tech"
origin
"moz-extension://820c173c-83d3-4162-9e65-c707e9854e69"
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-origin"
user-agent
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0"
x-php-ob-level
"1"

Request Content

Raw

{"email":"eaismail.02@gmail.com", "password":"JEE"}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Sat, 17 Jan 2026 21:54:59 GMT"
vary
"Accept"
x-debug-exception
"The%20controller%20for%20URI%20%22%2Fapi_v2%2Flogin%22%20is%20not%20callable%3A%20Environment%20variable%20not%20found%3A%20%22encrypt_secret%22."
x-debug-exception-file
"%2Fvar%2Fwww%2Febook_api%2Fvendor%2Fsymfony%2Fhttp-kernel%2FController%2FControllerResolver.php:76"
x-debug-token
"2ec40f"

Cookies

Request Cookies

Key Value
PHPSESSID
"58i0sutses8h6jogu65ikbbkke"

Response Cookies

No response cookies

Session 1

Session Metadata

Key Value
Created
"Sat, 17 Jan 26 21:46:35 +0000"
Last used
"Sat, 17 Jan 26 21:51:04 +0000"
Lifetime
0

Session Attributes

Attribute Value
_security.main.target_path
"https://book.api.7ap.tech/"

Session Usage

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

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"702f5badec0a9454fef2d59ea1e5dd01"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://root:Amrani@@@021891@127.0.0.1:3306/ebook_api?serverVersion=8.0.42-0ubuntu0.24.04.1&charset=utf8mb4"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"51"
CONTENT_TYPE
"text/plain;charset=utf-8"
CONTEXT_DOCUMENT_ROOT
"/var/www/ebook_api/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/ebook_api/public"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3"
HTTP_CONNECTION
"keep-alive"
HTTP_COOKIE
"PHPSESSID=58i0sutses8h6jogu65ikbbkke"
HTTP_HOST
"book.api.7ap.tech"
HTTP_ORIGIN
"moz-extension://820c173c-83d3-4162-9e65-c707e9854e69"
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-origin"
HTTP_USER_AGENT
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"p=api_v2/login"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"p=api_v2/login"
REDIRECT_SSL_TLS_SNI
"book.api.7ap.tech"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api_v2/login"
REMOTE_ADDR
"196.92.215.241"
REMOTE_PORT
"55336"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1768686899
REQUEST_TIME_FLOAT
1768686899.5674
REQUEST_URI
"/api_v2/login"
SCRIPT_FILENAME
"/var/www/ebook_api/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"95.179.186.228"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"book.api.7ap.tech"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.58 (Ubuntu) Server at book.api.7ap.tech Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.58 (Ubuntu)"
SSL_TLS_SNI
"book.api.7ap.tech"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN,CORS_ALLOW_ORIGIN"

Parent Request

Return to parent request (token = 3e3533)

Key Value
_controller
"App\Controller\ApiV2Controller::login"
_firewall_context
"security.firewall.map.context.main"
_nelmio_cors_should_allow_origin
true
_remove_csp_headers
true
_route
"app_api_v2_login"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"801224"