https://sys.nenocourier.co.ke/fos/receipt/g03/1151838

Dumped Contents

App\TimsProcessor\Tremol\core\SException {#1490
  #message: "Server connection error ($Warning: file_get_contents(http://localhost:5000/settings(com=COM3,baud=115200,keepPortOpen=1,tcp=0)): Failed to open stream: Connection refused)"
  #code: 101
  #file: "/var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php"
  #line: 117
  -previous: ErrorException {#1494
    #message: "Warning: file_get_contents(http://localhost:5000/settings(com=COM3,baud=115200,keepPortOpen=1,tcp=0)): Failed to open stream: Connection refused"
    #code: 0
    #file: "/var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php"
    #line: 91
    #severity: E_WARNING
    trace: {
      /var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php:91 {
        App\TimsProcessor\Tremol\core\FPCore->sendGetRequest($u) …
        › $streamContext  = stream_context_create($options);\r$result = file_get_contents($u, FALSE, $streamContext);\rreturn $result;\r
      }
      /var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php:107 {
        App\TimsProcessor\Tremol\core\FPCore->sendReq($isPost, $u, $data) …
        › {\r    $result = $this->sendGetRequest($u);\r}\r
      }
      /var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php:369 {
        App\TimsProcessor\Tremol\core\FPCore->ServerSetDeviceSerialSettings($serialPort, $baudRate, $keepPortOpen) …
        › try {\r    $response = $this->sendReq(FALSE, $this->url."settings(com=".$serialPort.",baud=".strval($baudRate).",keepPortOpen=".$keepOpen.",tcp=0)", NULL);\r    $df = $response->settings->defVer;\r
      }
      /var/www/html/courier/src/Service/TremolInitiator.php:25 {
        App\Service\TremolInitiator->__construct(ObjectManager $em, Etr $etr) …
        › //          $this::$FP->ServerSetDeviceTcpSettings("192.168.100.61",8000,'mirage2222');            $this::$FP->ServerSetDeviceSerialSettings($etr->getCom(), 115200, TRUE);        }catch(\Exception $e){
      }
      /var/www/html/courier/src/Parcels/ParcelController.php:1288 {
        App\Parcels\ParcelController->ReceiptGO3Action(Request $request, $waybill_, MpdfFactory $MpdfFactory): Response …
        › try{    $tremolInitiator = new TremolInitiator($this->em, $etr);}catch(\Exception $e){
      }
      /var/www/html/courier/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/html/courier/vendor/symfony/http-kernel/HttpKernel.php:75 {
        Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
        › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
      }
      /var/www/html/courier/vendor/symfony/http-kernel/Kernel.php:202 {
        Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
        › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      }
      /var/www/html/courier/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/html/courier/vendor/autoload_runtime.php:35 {
        require_once …
        ›         ->getRunner($app)        ->run());
      }
      /var/www/html/courier/public/index.php:5 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
          "/var/www/html/courier/vendor/autoload_runtime.php"
        }
      }
    }
  }
  #ste1: null
  #ste2: null
  #is_fp_exception: false
  trace: {
    /var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php:117 {
      App\TimsProcessor\Tremol\core\FPCore->sendReq($isPost, $u, $data) …
      ›     $msg = "Server connection error ($".$ex->getMessage().")";\r    throw new SException($msg, ServerErrorType::ServerConnectionError, $ex);\r}\r
    }
    /var/www/html/courier/src/TimsProcessor/Tremol/core/FPCore.php:369 {
      App\TimsProcessor\Tremol\core\FPCore->ServerSetDeviceSerialSettings($serialPort, $baudRate, $keepPortOpen) …
      › try {\r    $response = $this->sendReq(FALSE, $this->url."settings(com=".$serialPort.",baud=".strval($baudRate).",keepPortOpen=".$keepOpen.",tcp=0)", NULL);\r    $df = $response->settings->defVer;\r
    }
    /var/www/html/courier/src/Service/TremolInitiator.php:25 {
      App\Service\TremolInitiator->__construct(ObjectManager $em, Etr $etr) …
      › //          $this::$FP->ServerSetDeviceTcpSettings("192.168.100.61",8000,'mirage2222');            $this::$FP->ServerSetDeviceSerialSettings($etr->getCom(), 115200, TRUE);        }catch(\Exception $e){
    }
    /var/www/html/courier/src/Parcels/ParcelController.php:1288 {
      App\Parcels\ParcelController->ReceiptGO3Action(Request $request, $waybill_, MpdfFactory $MpdfFactory): Response …
      › try{    $tremolInitiator = new TremolInitiator($this->em, $etr);}catch(\Exception $e){
    }
    /var/www/html/courier/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/html/courier/vendor/symfony/http-kernel/HttpKernel.php:75 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
    }
    /var/www/html/courier/vendor/symfony/http-kernel/Kernel.php:202 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/html/courier/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/html/courier/vendor/autoload_runtime.php:35 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/html/courier/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/html/courier/vendor/autoload_runtime.php"
      }
    }
  }
}