Error 500 Internal Server Error

GET https://tkgstage.com/api/user/wallet

Forwarded to ErrorController (3bc571)

UserController :: getConnectedWallet

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\TinyKnightGames\UserController::getConnectedWallet"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"api_user_wallet"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"eedc85"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br"
accept-language
"en-US"
connection
"keep-alive"
from
"googlebot(at)googlebot.com"
host
"tkgstage.com"
referer
"https://tkgstage.com/explorer/asset/11561"
user-agent
"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.113 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
x-php-ob-level
"1"
x-requested-with
"XMLHttpRequest"

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
"Fri, 20 Sep 2024 01:16:39 GMT"
x-debug-exception
"Call%20to%20a%20member%20function%20getActiveWallet%28%29%20on%20null"
x-debug-exception-file
"%2Fvar%2Fwww%2Ffishersquest%2Fstage%2Freleases%2F20230602014038Z%2Fsrc%2FController%2FTinyKnightGames%2FUserController.php:328"
x-debug-token
"6bcf12"
x-debug-token-link
"https://tkgstage.com/_profiler/3bc571"
x-previous-debug-token
"3bc571"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

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_DOMAIN
"tkgstage.com"
APP_ENV
"dev"
APP_SECRET
"thisisonlyatest"
AWS_S3_KEY
"AKIA2LP2FJSKFA56BYHW"
AWS_S3_SECRET
"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"
CORS_ALLOW_ORIGIN
"^https?://(typho3.github.io|fishersquest.tinyknightgames.com|www.fishersquest.tinyknightgames.com|localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://ef_admin:1bZW2yhVG9Q7!@127.0.0.1:3306/extremefishing?serverVersion=5.7"
MAILER_DSN
"gmail+smtp://tinyknightgames@gmail.com:HungryGnome9!!@default"
OAUTH_GOOGLE_ID
"184667230331-n5d3c6bcbu3uq75koqi6ngt9ki8ruiie.apps.googleusercontent.com"
OAUTH_GOOGLE_SECRET
"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"
PHOTON_API_KEY
"Jxvuz4EXk5Ym87M4DxrhyungEKDtNy3D"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/var/www/fishersquest/stage/current/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/fishersquest/stage/current/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br"
HTTP_ACCEPT_LANGUAGE
"en-US"
HTTP_CONNECTION
"keep-alive"
HTTP_FROM
"googlebot(at)googlebot.com"
HTTP_HOST
"tkgstage.com"
HTTP_REFERER
"https://tkgstage.com/explorer/asset/11561"
HTTP_USER_AGENT
"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.113 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
HTTP_X_REQUESTED_WITH
"XMLHttpRequest"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REMOTE_ADDR
"66.249.70.164"
REMOTE_PORT
"55221"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1726794999
REQUEST_TIME_FLOAT
1726794999.8452
REQUEST_URI
"/api/user/wallet"
SCRIPT_FILENAME
"/var/www/fishersquest/stage/current/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://tkgstage.com/api/user/wallet"
SCRIPT_URL
"/api/user/wallet"
SERVER_ADDR
"137.184.62.17"
SERVER_ADMIN
"matt@learningkeyworks.com"
SERVER_NAME
"tkgstage.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Ubuntu) Server at tkgstage.com Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)"
SSL_TLS_SNI
"tkgstage.com"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,MAILER_DSN,DATABASE_URL,CORS_ALLOW_ORIGIN,OAUTH_GOOGLE_ID,OAUTH_GOOGLE_SECRET,APP_DOMAIN,PHOTON_API_KEY,AWS_S3_KEY,AWS_S3_SECRET"
USER
"www-data"
proxy-nokeepalive
"1"

Sub Requests 1

ErrorController (token = 3bc571)

Key Value
_controller
"error_controller"
_stopwatch_token
"55e19b"
exception
Error {#281
  #message: "Call to a member function getActiveWallet() on null"
  #code: 0
  #file: "/var/www/fishersquest/stage/releases/20230602014038Z/src/Controller/TinyKnightGames/UserController.php"
  #line: 328
  trace: {
    /var/www/fishersquest/stage/releases/20230602014038Z/src/Controller/TinyKnightGames/UserController.php:328 {
      App\Controller\TinyKnightGames\UserController->getConnectedWallet() …
      › 
      › if($user->getActiveWallet()) {    $address = $user->getActiveWallet()->getAddress();
    }
    /var/www/fishersquest/stage/shared/vendor/symfony/http-kernel/HttpKernel.php:163 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/fishersquest/stage/shared/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/fishersquest/stage/shared/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/fishersquest/stage/shared/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/fishersquest/stage/shared/vendor/autoload_runtime.php:30 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/fishersquest/stage/releases/20230602014038Z/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/fishersquest/stage/shared/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#152 …8}