Error 500 Internal Server Error

POST https://influetesaguaazul.com.br/webhookVtex

Forwarded to ErrorController (3b68aa)

SecurityController :: webhookVtex

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\SecurityController::webhookVtex"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"webhookVtex"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"c15368"

Request Headers

Header Value
accept-encoding
"gzip"
baggage
"vtex_trace=true"
content-length
"253"
content-type
"application/json; charset=utf-8"
host
"influetesaguaazul.com.br"
key
"value"
traceparent
"00-9b4e1d79cac2802c9c786b74d63b9b05-6b78c08010421b62-00"
x-forwarded-for
"54.144.213.24"
x-forwarded-port
"443"
x-forwarded-proto
"https"
x-lscache
"1"
x-php-ob-level
"1"
x-port
"443"
x-real-ip
"54.144.213.24"
x-real-port
"58118"

Request Content

Raw

{"Domain":"OrdersDocumentUpdated","OrderId":"1485470628755-01","State":"ready-for-handling","LastState":null,"LastChange":"2024-12-22T02:46:31.3478596","CurrentChange":"0001-01-01T00:00:00","Origin":{"Account":"tfcxa2","Key":"vtexappkey-tfcxa2-VKFXGO"}}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Sun, 22 Dec 2024 18:38:38 GMT"
x-debug-exception
"Warning%3A%20Undefined%20array%20key%200"
x-debug-exception-file
"%2Fhome%2Fu187857550%2Fdomains%2Finfluetesaguaazul.com.br%2Fpublic_html%2Fdashboard%2Fsrc%2FController%2FSecurityController.php:157"
x-debug-token
"69f8cf"
x-debug-token-link
"https://influetesaguaazul.com.br/_profiler/3b68aa"
x-previous-debug-token
"3b68aa"
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" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 41
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Authenticator/RememberMeAuthenticator.php"
    "line" => 64
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Authentication/AuthenticatorManager.php"
    "line" => 111
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php"
    "line" => 34
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authentication\AuthenticatorManager"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php"
    "line" => 39
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 38
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Firewall/AbstractListener.php"
    "line" => 25
    "function" => "supports"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-bundle/Security/LazyFirewallContext.php"
    "line" => 60
    "function" => "__invoke"
    "class" => "Symfony\Component\Security\Http\Firewall\AbstractListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 73
    "function" => "__invoke"
    "class" => "Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/security-http/Firewall.php"
    "line" => 95
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 116
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 142
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 74
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/public/index.php"
    "line" => 5
    "args" => [
      "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/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
"498affc79002f39a970d1690c886b522"
DATABASE_URL
"mysql://u187857550_slim:Aguete10@@localhost/u187857550_influetes?charset=utf8mb4"
MAILER_DSN
"mailjet+api://1b3361a7ff084d3daf8c8c430142f89f:517748bcfe404cb595d47047f2ebb025@api.mailjet.com"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
BASE
"/dashboard/public"
CONTENT_LENGTH
"253"
CONTENT_TYPE
"application/json; charset=utf-8"
CRAWLER_LOAD_LIMIT_ENFORCE
"25"
CRAWLER_USLEEP
"1000"
DOCUMENT_ROOT
"/home/u187857550/domains/influetesaguaazul.com.br/public_html"
HTTPS
"on"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_BAGGAGE
"vtex_trace=true"
HTTP_HOST
"influetesaguaazul.com.br"
HTTP_KEY
"value"
HTTP_TRACEPARENT
"00-9b4e1d79cac2802c9c786b74d63b9b05-6b78c08010421b62-00"
HTTP_X_FORWARDED_FOR
"54.144.213.24"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_LSCACHE
"1"
HTTP_X_PORT
"443"
HTTP_X_REAL_IP
"54.144.213.24"
HTTP_X_REAL_PORT
"58118"
H_CANARY
"false"
H_PLATFORM
"Hostinger"
H_STAGING
"false"
H_TYPE
"shared"
LSPHP_ProcessGroup
"on"
PATH
"/usr/local/bin:/bin:/usr/bin"
PHP_SELF
"/dashboard/public/index.php"
PROXY_REMOTE_ADDR
"2a02:4780:1:22::2"
QUERY_STRING
""
REDIRECT_REQUEST_METHOD
"POST"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/dashboard/public/webhookVtex"
REMOTE_ADDR
"54.144.213.24"
REMOTE_PORT
"60806"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1734892717
REQUEST_TIME_FLOAT
1734892717.3852
REQUEST_URI
"/webhookVtex"
SCRIPT_FILENAME
"/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/public/index.php"
SCRIPT_NAME
"/dashboard/public/index.php"
SCRIPT_URI
"https://influetesaguaazul.com.br/webhookVtex"
SCRIPT_URL
"/webhookVtex"
SERVER_ADDR
"2a02:4780:13:1177:0:b32:7a8e:2"
SERVER_ADMIN
""
SERVER_NAME
"influetesaguaazul.com.br"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_PROTOCOL
"TLSv1.3"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MAILER_DSN"
X-LSCACHE
"on,crawler,esi,combine"

Sub Requests 1

ErrorController (token = 3b68aa)

Key Value
_controller
"error_controller"
_stopwatch_token
"15cfed"
exception
ErrorException {#557
  #message: "Warning: Undefined array key 0"
  #code: 0
  #file: "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/src/Controller/SecurityController.php"
  #line: 157
  #severity: E_WARNING
  trace: {
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/src/Controller/SecurityController.php:157 {
      App\Controller\SecurityController->getOrderData(string $orderId): array …
      › 'categoryIdsSku' => $key['additionalInfo']['categories']['0']['name'],'skuSellingPrice' => $key['price'] + $key['priceTags']['0']['value'],'detailUrl' => $key['detailUrl'],
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/src/Controller/SecurityController.php:65 {
      App\Controller\SecurityController->processWebhook(array $payload, EntityManagerInterface $entityManager, VtexDataRepository $vtexDataRepository): array …
      › $originKey = $payload['Origin']['Key'] ?? 'Não especificado';$dadosSalvar = $this->getOrderData($orderId);$array = [];
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/src/Controller/SecurityController.php:43 {
      App\Controller\SecurityController->webhookVtex(Request $request, EntityManagerInterface $entityManager, VtexDataRepository $vtexDataRepository): JsonResponse …
      › // Processa o payload$response = $this->processWebhook($data, $entityManager, $vtexDataRepository);return new JsonResponse($response);
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/http-kernel/HttpKernel.php:166 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/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) {
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/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 {
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/home/u187857550/domains/influetesaguaazul.com.br/public_html/dashboard/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#90 …9}