Error 500 Internal Server Error

GET https://api97485-albarkaznt.maialbarka.com/api/customer/latest/transaction

Serializer

1 Handled
0.09 ms Total time

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#1818
  -message: "Call to a member function getLastName() on null"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/maiAlbarka/mai_albarka_api/src/Controller/ApiCustomer/ApiGet/ApiListController.php"
      "line" => 239
      "args" => []
    ]
    [
      "namespace" => "App\Controller\ApiCustomer\ApiGet"
      "short_class" => "ApiListController"
      "class" => "App\Controller\ApiCustomer\ApiGet\ApiListController"
      "type" => "->"
      "function" => "CustomerLatest"
      "file" => "/maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 181
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/maiAlbarka/mai_albarka_api/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" => "/maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/Kernel.php"
      "line" => 197
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "Kernel"
      "class" => "Symfony\Component\HttpKernel\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/maiAlbarka/mai_albarka_api/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" => "/maiAlbarka/mai_albarka_api/vendor/autoload_runtime.php"
      "line" => 29
      "args" => []
    ]
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => "require_once"
      "file" => "/maiAlbarka/mai_albarka_api/public/index.php"
      "line" => 5
      "args" => [
        [
          "string"
          "/maiAlbarka/mai_albarka_api/vendor/autoload_runtime.php"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/HttpKernel.php(181): App\Controller\ApiCustomer\ApiGet\ApiListController->CustomerLatest()\n
    #1 /maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n
    #2 /maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()\n
    #3 /maiAlbarka/mai_albarka_api/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle()\n
    #4 /maiAlbarka/mai_albarka_api/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()\n
    #5 /maiAlbarka/mai_albarka_api/public/index.php(5): require_once('...')\n
    #6 {main}
    """
  -class: "Error"
  -statusCode: 500
  -statusText: "Internal Server Error"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "Call%20to%20a%20member%20function%20getLastName%28%29%20on%20null"
    "X-Debug-Exception-File" => "%2FmaiAlbarka%2Fmai_albarka_api%2Fsrc%2FController%2FApiCustomer%2FApiGet%2FApiListController.php:239"
    "Content-Type" => "application/json"
  ]
  -file: "/maiAlbarka/mai_albarka_api/src/Controller/ApiCustomer/ApiGet/ApiListController.php"
  -line: 239
  -asString: "{"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","status":500,"detail":"Call to a member function getLastName() on null","class":"Error","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/maiAlbarka\/mai_albarka_api\/src\/Controller\/ApiCustomer\/ApiGet\/ApiListController.php","line":239,"args":[]},{"namespace":"App\\Controller\\ApiCustomer\\ApiGet","short_class":"ApiListController","class":"App\\Controller\\ApiCustomer\\ApiGet\\ApiListController","type":"->","function":"CustomerLatest","file":"\/maiAlbarka\/mai_albarka_api\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":181,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"\/maiAlbarka\/mai_albarka_api\/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":"\/maiAlbarka\/mai_albarka_api\/vendor\/symfony\/http-kernel\/Kernel.php","line":197,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"->","function":"handle","file":"\/maiAlbarka\/mai_albarka_api\/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":"\/maiAlbarka\/mai_albarka_api\/vendor\/autoload_runtime.php","line":29,"args":[]},{"namespace":"","short_class":"","class":"","type":"","function":"require_once","file":"\/maiAlbarka\/mai_albarka_api\/public\/index.php","line":5,"args":[["string","\/maiAlbarka\/mai_albarka_api\/vendor\/autoload_runtime.php"]]}]}"
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: json
Show context
[
  "exception" => Error {#1534
    #message: "Call to a member function getLastName() on null"
    #code: 0
    #file: "/maiAlbarka/mai_albarka_api/src/Controller/ApiCustomer/ApiGet/ApiListController.php"
    #line: 239
    trace: {
      /maiAlbarka/mai_albarka_api/src/Controller/ApiCustomer/ApiGet/ApiListController.php:239 {
        App\Controller\ApiCustomer\ApiGet\ApiListController->CustomerLatest(CustomerRepository $CustomerRepository, TransactionRepository $transactionRepository, OperationRepository $operationRepository, Request $request, JWTEncoderInterface $jwtDecoder, EntityManagerInterface $entityManager, AccountRepository $AccountRepository, MovementAccountRepository $movementAccountRepository): Response …
        › $client=$transactions->getIdCustomerSend();$expediteur=$client->getLastName()." ".$client->getFirstName();$telephoneExp=$client->getPhone();
      }
      /maiAlbarka/mai_albarka_api/vendor/symfony/http-kernel/HttpKernel.php:181 {
        Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
        › // call controller$response = $controller(...$arguments);}
      /maiAlbarka/mai_albarka_api/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) {
      }
      /maiAlbarka/mai_albarka_api/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 {
      }
      /maiAlbarka/mai_albarka_api/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
        Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
        › {    $response = $this->kernel->handle($this->request);}
      /maiAlbarka/mai_albarka_api/vendor/autoload_runtime.php:29 {
        require_once …
        ›         ->getRunner($app)        ->run());
      }
      /maiAlbarka/mai_albarka_api/public/index.php:5 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
          "/maiAlbarka/mai_albarka_api/vendor/autoload_runtime.php"
        }
      }
    }
  }
  "debug" => true
]
ProblemNormalizer (0.00 ms) JsonEncoder (0.02 ms) 0.09 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.