ServerException {#187
  -request: Request {#176
    -method: "POST"
    -requestTarget: null
    -uri: Uri {#172
      -scheme: "https"
      -userInfo: ""
      -host: "portal.optimumhq.com"
      -port: null
      -path: "/api/querySampleData.jsp"
      -query: "z=1&surveyId=4865"
      -fragment: ""
    }
    -headers: array:5 [
      "User-Agent" => array:1 [
        0 => "GuzzleHttp/6.3.3 curl/7.61.1 PHP/7.2.19"
      ]
      "Authorization" => array:1 [
        0 => "Basic dGFiczp0YWJzMzRGZ2l3NTU1NXNjVEdi"
      ]
      "Host" => array:1 [
        0 => "portal.optimumhq.com"
      ]
      "Accept" => array:1 [
        0 => "application/json"
      ]
      "Content-Type" => array:1 [
        0 => "application/json"
      ]
    ]
    -headerNames: array:5 [
      "user-agent" => "User-Agent"
      "authorization" => "Authorization"
      "host" => "Host"
      "accept" => "Accept"
      "content-type" => "Content-Type"
    ]
    -protocol: "1.1"
    -stream: Stream {#174
      -stream: stream resource @297
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 202
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -response: Response {#184
    -reasonPhrase: "Internal Server Error"
    -statusCode: 500
    -headers: array:15 [
      "Date" => array:1 [
        0 => "Tue, 18 Nov 2025 13:10:10 GMT"
      ]
      "Content-Type" => array:1 [
        0 => "text/plain; charset=UTF-8"
      ]
      "Content-Length" => array:1 [
        0 => "15"
      ]
      "Connection" => array:1 [
        0 => "keep-alive"
      ]
      "Cache-Control" => array:1 [
        0 => "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
      ]
      "Expires" => array:1 [
        0 => "Thu, 01 Jan 1970 00:00:01 GMT"
      ]
      "Referrer-Policy" => array:1 [
        0 => "no-referrer-when-downgrade"
      ]
      "X-Frame-Options" => array:1 [
        0 => "SAMEORIGIN"
      ]
      "Content-Security-Policy" => array:1 [
        0 => "script-src 'self' 'unsafe-inline' 'unsafe-eval' www.google-analytics.com ajax.googleapis.com cdn.datatables.net cdn.jsdelivr.net cdn.polyfill.io cdnjs.cloudflare.com code.jquery.com d3e54v103j8qbb.cloudfront.net kit.fontawesome.com maps.googleapis.com maxcdn.bootstrapcdn.com oss.maxcdn.com seal.godaddy.com stackpath.bootstrapcdn.com unpkg.com www.google.com www.googletagmanager.com www.gstatic.com www.optimumhq.com; frame-ancestors 'self' https://studentaptitude.com https://www.studentaptitude.com https://www.kolbeyouthindex.com https://kolbeyouthindex.com https://www.optimumhq.com; worker-src 'self' blob:;"
      ]
      "Permissions-Policy" => array:1 [
        0 => "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=()"
      ]
      "Strict-Transport-Security" => array:1 [
        0 => "max-age=31536000; includeSubDomains; preload"
      ]
      "X-Content-Type-Options" => array:1 [
        0 => "nosniff"
      ]
      "X-Xss-Protection" => array:1 [
        0 => "1; mode=block"
      ]
      "Server" => array:1 [
        0 => "cloudflare"
      ]
      "CF-RAY" => array:1 [
        0 => "9a07b4dbcc7a14ce-ORD"
      ]
    ]
    -headerNames: array:15 [
      "date" => "Date"
      "content-type" => "Content-Type"
      "content-length" => "Content-Length"
      "connection" => "Connection"
      "cache-control" => "Cache-Control"
      "expires" => "Expires"
      "referrer-policy" => "Referrer-Policy"
      "x-frame-options" => "X-Frame-Options"
      "content-security-policy" => "Content-Security-Policy"
      "permissions-policy" => "Permissions-Policy"
      "strict-transport-security" => "Strict-Transport-Security"
      "x-content-type-options" => "X-Content-Type-Options"
      "x-xss-protection" => "X-Xss-Protection"
      "server" => "Server"
      "cf-ray" => "CF-RAY"
    ]
    -protocol: "1.1"
    -stream: Stream {#182
      -stream: stream resource @303
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 15
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -handlerContext: []
  #message: """
    Server error: `POST https://portal.optimumhq.com/api/querySampleData.jsp?z=1&surveyId=4865` resulted in a `500 Internal Server Error` response:\n
    error code: 500\n
    """
  #code: 500
  #file: "/var/www/travology/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
  #line: 113
  trace: {
    /var/www/travology/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
      › 
      ›     return new $className($message, $request, $response, $previous, $ctx);}
    }
    /var/www/travology/vendor/guzzlehttp/guzzle/src/Middleware.php:66 {    }    throw RequestException::create($request, $response);}
      arguments: {
        $request: Request {#176}
        $response: Response {#184}
      }
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:203 {if (isset($handler[$index])) {    $promise->resolve($handler[$index]($value));} elseif ($index === 1) {
      arguments: {
        Response {#184}
      }
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:156 {foreach ($handlers as $handler) {    self::callHandler($id, $value, $handler);}
      arguments: {
        $index: 1
        $value: Response {#184}
        $handler: array:3 [ …3]
      }
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/TaskQueue.php:47 {while ($task = array_shift($this->queue)) {    $task();}
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:246 {    $this->waitFn = null;    $wfn(true);} catch (\Exception $reason) {
      arguments: {
        true
      }
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:223 {} elseif ($this->waitFn) {    $this->invokeWaitFn();} elseif ($this->waitList) {
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:267 {while (true) {    $result->waitIfPending();}
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:225 {} elseif ($this->waitList) {    $this->invokeWaitList();} else {
    }
    /var/www/travology/vendor/guzzlehttp/promises/src/Promise.php:62 {{    $this->waitIfPending();}
    /var/www/travology/vendor/guzzlehttp/guzzle/src/Client.php:131 {    $options[RequestOptions::SYNCHRONOUS] = true;    return $this->requestAsync($method, $uri, $options)->wait();}
    }
    /var/www/travology/app/Http/Controllers/OptimumCallerController.php:348 {$client = new Client();$apiRequest = $client->request('POST', $urlString, $requestContent);$response = $apiRequest->getBody();
      arguments: {
        $method: "POST"
        $uri: "https://portal.optimumhq.com/api/querySampleData.jsp?z=1&surveyId=4865"
        $options: array:4 [ …4]
      }
    }
    /var/www/travology/app/Http/Controllers/OptimumCallerController.php:82 {,\t$sortOn,\t$sortDir);
      arguments: {
        $surveyId: 4865
        $sampleId: 0
        $dataSeg: 9930
        $data: array:2 [ …2]
        $action: "query"
        $returnLimit: 1000
        $returnStartRow: 1
        $sortOn: "Type,Feature"
        $sortDir: "ASC"
      }
    }
    /var/www/travology/app/StaticPage.php:51 {];$sp = $opt->optSearch($params)['data'];array_multisort(array_column($sp, 'Type'), SORT_ASC,
      arguments: {
        $params: array:4 [ …4]
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:387 {
      › 
      › $this->put($key, $value = $callback(), $ttl);}
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:356 {{    return $this->store()->$method(...$parameters);}
      arguments: {
        $key: "StaticPages"
        $ttl: 900
        $callback: Closure {#149 …}
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:237 {
      › 
      ›     return $instance->$method(...$args);}
      arguments: {
        $method: "remember"
        $parameters: array:3 [ …3]
      }
    }
    /var/www/travology/app/StaticPage.php:78 {\t\t\treturn $sp2;\t\t});// dd(__method__,Cache::get('StaticPages') );
      arguments: {
        $method: "remember"
        $args: array:3 [ …3]
      }
    }
    /var/www/travology/app/StaticPage.php:84 {public static function find($Feature='nomatch',$lang="en-us"){\t$pages = Self::all();}
    /var/www/travology/app/Http/Controllers/PageController.php:36 {$page = new StaticPage();$page = $page->find($Feature);return $page;
      arguments: {
        $Feature: "Welcome"
      }
    }
    /var/www/travology/routes/web.php:15 {// run this to make sure the pages are loaded into cache(new \App\Http\Controllers\PageController)->getPageContent('Welcome');arguments: {
        $Feature: "Welcome"
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35 {
      › 
      ›     require $routes;}
      arguments: {
        "/var/www/travology/routes/web.php"
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Routing/Router.php:415 {} else {    (new RouteFileRegistrar($this))->register($routes);}
      arguments: {
        $routes: "/var/www/travology/routes/web.php"
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Routing/Router.php:373 {// have created the routes, we will pop the attributes off the stack.$this->loadRoutes($routes);arguments: {
        $routes: "/var/www/travology/routes/web.php"
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:121 {{    $this->router->group($this->attributes, $callback);}
      arguments: {
        $attributes: array:2 [ …2]
        $routes: "/var/www/travology/routes/web.php"
      }
    }
    /var/www/travology/app/Providers/RouteServiceProvider.php:56 {         ->namespace($this->namespace)         ->group(base_path('routes/web.php'));}
      arguments: {
        $callback: "/var/www/travology/routes/web.php"
      }
    }
    /var/www/travology/app/Providers/RouteServiceProvider.php:40 {
      › 
      › $this->mapWebRoutes();}
    App\Providers\RouteServiceProvider->map() {}
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 {return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 {
      › 
      ›     return $default instanceof Closure ? $default() : $default;}
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 {        );    });}
      arguments: {
        $container: Application {#2 …}
        $callback: array:2 [ …2]
        $default: Closure {#35 …}
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 {{    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
      arguments: {
        $container: Application {#2 …}
        $callback: array:2 [ …2]
        $parameters: []
        $defaultMethod: null
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:87 {if (method_exists($this, 'map')) {    $this->app->call([$this, 'map']);}
      arguments: {
        $callback: array:2 [ …2]
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:36 {} else {    $this->loadRoutes();}
    /var/www/travology/app/Providers/RouteServiceProvider.php:28 {
      › 
      ›     parent::boot();}
    }
    App\Providers\RouteServiceProvider->boot() {}
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 {return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 {
      › 
      ›     return $default instanceof Closure ? $default() : $default;}
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 {        );    });}
      arguments: {
        $container: Application {#2 …}
        $callback: array:2 [ …2]
        $default: Closure {#35 …}
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 {{    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
      arguments: {
        $container: Application {#2 …}
        $callback: array:2 [ …2]
        $parameters: []
        $defaultMethod: null
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:817 {if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
      arguments: {
        $callback: array:2 [ …2]
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:800 {array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
      arguments: {
        $provider: RouteServiceProvider {#103 …}
      }
    }
    Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:801 {    $this->bootProvider($p);});arguments: {
        &$input: array:24 [ …24]
        $funcname: Closure {#22 …}
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {{    $app->boot();}
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:210 {
      › 
      › $this->make($bootstrapper)->bootstrap($this);arguments: {
        $app: Application {#2 …}
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
      arguments: {
        $bootstrappers: array:6 [ …6]
      }
    }
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
      › 
      › $this->bootstrap();}
    /var/www/travology/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#43 …}
      }
    }
    /var/www/travology/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#43 …}
      }
    }
  }
}