Error 500 Internal Server Error

POST http://tracking.ecopanel.pw/webhooks/whereparcel/aeee719ab8b8285f?s=%2F%2Fwebhooks%2Fwhereparcel%2Faeee719ab8b8285f

Forwarded to ErrorController (8a70d1)

Serializer

1 Handled
0.16 ms Total time

default 1

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#818
  -message: "Warning: Array to string conversion"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/www/wwwroot/tracking.ecopanel.pw/src/Service/Tracking/WhereparcelClient.php"
      "line" => 245
      "args" => []
    ]
    [
      "namespace" => "App\Service\Tracking"
      "short_class" => "WhereparcelClient"
      "class" => "App\Service\Tracking\WhereparcelClient"
      "type" => "->"
      "function" => "trackingIdentityFromPayload"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/src/Controller/WhereparcelWebhookController.php"
      "line" => 43
      "args" => []
    ]
    [
      "namespace" => "App\Controller"
      "short_class" => "WhereparcelWebhookController"
      "class" => "App\Controller\WhereparcelWebhookController"
      "type" => "->"
      "function" => "__invoke"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 183
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 76
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/Kernel.php"
      "line" => 193
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "Kernel"
      "class" => "Symfony\Component\HttpKernel\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
      "line" => 35
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\Runtime\Runner\Symfony"
      "short_class" => "HttpKernelRunner"
      "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
      "type" => "->"
      "function" => "run"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/vendor/autoload_runtime.php"
      "line" => 32
      "args" => []
    ]
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => "require_once"
      "file" => "/www/wwwroot/tracking.ecopanel.pw/public/index.php"
      "line" => 5
      "args" => [
        [
          "string"
          "/www/wwwroot/tracking.ecopanel.pw/vendor/autoload_runtime.php"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /www/wwwroot/tracking.ecopanel.pw/src/Controller/WhereparcelWebhookController.php(43): App\Service\Tracking\WhereparcelClient->trackingIdentityFromPayload()\n
    #1 /www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/HttpKernel.php(183): App\Controller\WhereparcelWebhookController->__invoke()\n
    #2 /www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n
    #3 /www/wwwroot/tracking.ecopanel.pw/vendor/symfony/http-kernel/Kernel.php(193): Symfony\Component\HttpKernel\HttpKernel->handle()\n
    #4 /www/wwwroot/tracking.ecopanel.pw/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle()\n
    #5 /www/wwwroot/tracking.ecopanel.pw/vendor/autoload_runtime.php(32): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()\n
    #6 /www/wwwroot/tracking.ecopanel.pw/public/index.php(5): require_once('...')\n
    #7 {main}
    """
  -class: "ErrorException"
  -statusCode: 500
  -statusText: "Internal Server Error"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "Warning%3A%20Array%20to%20string%20conversion"
    "X-Debug-Exception-File" => "%2Fwww%2Fwwwroot%2Ftracking.ecopanel.pw%2Fsrc%2FService%2FTracking%2FWhereparcelClient.php:245"
    "Content-Type" => "application/json"
  ]
  -file: "/www/wwwroot/tracking.ecopanel.pw/src/Service/Tracking/WhereparcelClient.php"
  -line: 245
  -asString: "{"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","status":500,"detail":"Warning: Array to string conversion","class":"ErrorException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/src\/Service\/Tracking\/WhereparcelClient.php","line":245,"args":[]},{"namespace":"App\\Service\\Tracking","short_class":"WhereparcelClient","class":"App\\Service\\Tracking\\WhereparcelClient","type":"->","function":"trackingIdentityFromPayload","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/src\/Controller\/WhereparcelWebhookController.php","line":43,"args":[]},{"namespace":"App\\Controller","short_class":"WhereparcelWebhookController","class":"App\\Controller\\WhereparcelWebhookController","type":"->","function":"__invoke","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":183,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":76,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handle","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/symfony\/http-kernel\/Kernel.php","line":193,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"->","function":"handle","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/symfony\/runtime\/Runner\/Symfony\/HttpKernelRunner.php","line":35,"args":[]},{"namespace":"Symfony\\Component\\Runtime\\Runner\\Symfony","short_class":"HttpKernelRunner","class":"Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner","type":"->","function":"run","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/autoload_runtime.php","line":32,"args":[]},{"namespace":"","short_class":"","class":"","type":"","function":"require_once","file":"\/www\/wwwroot\/tracking.ecopanel.pw\/public\/index.php","line":5,"args":[["string","\/www\/wwwroot\/tracking.ecopanel.pw\/vendor\/autoload_runtime.php"]]}]}"
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: json
Show context
[
  "exception" => ErrorException {#470
    #message: "Warning: Array to string conversion"
    #code: 0
    #file: "/www/wwwroot/tracking.ecopanel.pw/src/Service/Tracking/WhereparcelClient.php"
    #line: 245
    #severity: E_WARNING
    trace: {
      /www/wwwroot/tracking.ecopanel.pw/src/Service/Tracking/WhereparcelClient.php:245 {
        App\Service\Tracking\WhereparcelClient->trackingIdentityFromPayload(array $data): array …
        ›     'tracking_number' => (string) ($item['trackingNumber'] ?? $item['tracking_number'] ?? ''),    'carrier' => $this->toLocalCarrier((string) ($item['carrier'] ?? '')),];
      }
      /www/wwwroot/tracking.ecopanel.pw/src/Controller/WhereparcelWebhookController.php:43 {
        App\Controller\WhereparcelWebhookController->__invoke(string $secret, Request $request): Response …
        › 
        › $identity = $this->whereparcel->trackingIdentityFromPayload($payload);if ($identity['tracking_number'] === '' || $identity['carrier'] === '') {
      }
      /www/wwwroot/tracking.ecopanel.pw/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);}
      /www/wwwroot/tracking.ecopanel.pw/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) {
      }
      /www/wwwroot/tracking.ecopanel.pw/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 {
      }
      /www/wwwroot/tracking.ecopanel.pw/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
        Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
        › {    $response = $this->kernel->handle($this->request);}
      /www/wwwroot/tracking.ecopanel.pw/vendor/autoload_runtime.php:32 {
        require_once …
        ›         ->getRunner($app)        ->run());
      }
      /www/wwwroot/tracking.ecopanel.pw/public/index.php:5 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
          "/www/wwwroot/tracking.ecopanel.pw/vendor/autoload_runtime.php"
        }
      }
    }
  }
  "debug" => true
]
ProblemNormalizer (0.02 ms) JsonEncoder (0.05 ms) 0.16 ms

deserialize 0

Nothing was deserialized.

normalize 0

Nothing was normalized.

denormalize 0

Nothing was denormalized.

encode 0

Nothing was encoded.

decode 0

Nothing was decoded.