GuzzleHttp\Exception\ServerException {#354
-request: GuzzleHttp\Psr7\Request {#343
-method: "GET"
-requestTarget: null
-uri: GuzzleHttp\Psr7\Uri {#339
-scheme: "https"
-userInfo: ""
-host: "cms.pogled.ba"
-port: null
-path: "/api/articles-by-slug/prometna-nesreca-u-prozor-rami-sudarili-se-golf-i-peugeot"
-query: ""
-fragment: ""
}
-headers: array:2 [
"User-Agent" => array:1 [
0 => "GuzzleHttp/6.5.4 curl/7.68.0 PHP/7.4.33"
]
"Host" => array:1 [
0 => "cms.pogled.ba"
]
]
-headerNames: array:2 [
"user-agent" => "User-Agent"
"host" => "Host"
]
-protocol: "1.1"
-stream: GuzzleHttp\Psr7\Stream {#342
-stream: stream resource @6
wrapper_type: "PHP"
stream_type: "TEMP"
mode: "w+b"
unread_bytes: 0
seekable: true
uri: "php://temp"
options: []
}
-size: 0
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
-response: GuzzleHttp\Psr7\Response {#350
-reasonPhrase: "Internal Server Error"
-statusCode: 500
-headers: array:13 [
"Date" => array:1 [
0 => "Sat, 16 Nov 2024 17:59:33 GMT"
]
"Content-Type" => array:1 [
0 => "text/html; charset=UTF-8"
]
"Transfer-Encoding" => array:1 [
0 => "chunked"
]
"Connection" => array:1 [
0 => "keep-alive"
]
"Cache-Control" => array:1 [
0 => "no-cache, private"
]
"access-control-allow-origin" => array:1 [
0 => "*"
]
"cf-cache-status" => array:1 [
0 => "DYNAMIC"
]
"Report-To" => array:1 [
0 => "{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=xZjERAMw3ZuIeg954Oi4cCa7dGZHpN6OBA%2BW97rU3nnOaH7BARXSBo143ovMq7dBspxWcwjeI404OqfqSDl74r%2FIkoIMJ5RF8mf9yw5zNMY%2FFndLlVNQodzhXdhr7KTD07BjjVwqIKD7dNvu"}],"group":"cf-nel","max_age":604800}"
]
"NEL" => array:1 [
0 => "{"success_fraction":0,"report_to":"cf-nel","max_age":604800}"
]
"Server" => array:1 [
0 => "cloudflare"
]
"CF-RAY" => array:1 [
0 => "8e3960250dfe3661-FRA"
]
"alt-svc" => array:1 [
0 => "h3=":443"; ma=86400"
]
"server-timing" => array:1 [
0 => "cfL4;desc="?proto=TCP&rtt=5612&sent=5&recv=6&lost=0&retrans=0&sent_bytes=2831&recv_bytes=789&delivery_rate=723434&cwnd=252&unsent_bytes=0&cid=685eaa14df2953f8&ts=51&x=0""
]
]
-headerNames: array:13 [
"date" => "Date"
"content-type" => "Content-Type"
"transfer-encoding" => "Transfer-Encoding"
"connection" => "Connection"
"cache-control" => "Cache-Control"
"access-control-allow-origin" => "access-control-allow-origin"
"cf-cache-status" => "cf-cache-status"
"report-to" => "Report-To"
"nel" => "NEL"
"server" => "Server"
"cf-ray" => "CF-RAY"
"alt-svc" => "alt-svc"
"server-timing" => "server-timing"
]
-protocol: "1.1"
-stream: GuzzleHttp\Psr7\Stream {#348
-stream: stream resource @8
wrapper_type: "PHP"
stream_type: "TEMP"
mode: "w+b"
unread_bytes: 0
seekable: true
uri: "php://temp"
options: []
}
-size: 1558
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
-handlerContext: []
#message: """
Server error: `GET https://cms.pogled.ba/api/articles-by-slug/prometna-nesreca-u-prozor-rami-sudarili-se-golf-i-peugeot` resulted in a `500 Internal Server Error` response:\n
<!DOCTYPE html>\n
<html lang="en">\n
<head>\n
<meta charset="utf-8">\n
<meta name="viewport" content="width= (truncated...)\n
"""
#code: 500
#file: "/home/ploi/pogled.ba/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
#line: 113
trace: {
/home/ploi/pogled.ba/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
GuzzleHttp\Exception\RequestException::create(RequestInterface $request, ResponseInterface $response = null, Exception $previous = null, array $ctx = []) …
›
› return new $className($message, $request, $response, $previous, $ctx);
› }
}
/home/ploi/pogled.ba/vendor/guzzlehttp/guzzle/src/Middleware.php:65 {
GuzzleHttp\Middleware::GuzzleHttp\{closure} …
› }
› throw RequestException::create($request, $response);
› }
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:204 {
GuzzleHttp\Promise\Promise::callHandler($index, $value, array $handler) …
› unset($handler);
› $promise->resolve($f($value));
› } elseif ($index === 1) {
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:153 {
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure} …
› foreach ($handlers as $handler) {
› self::callHandler($id, $value, $handler);
› }
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/TaskQueue.php:48 {
GuzzleHttp\Promise\TaskQueue->run() …
› /** @var callable $task */
› $task();
› }
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:248 {
GuzzleHttp\Promise\Promise->invokeWaitFn() …
› $this->waitFn = null;
› $wfn(true);
› } catch (\Exception $reason) {
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:224 {
GuzzleHttp\Promise\Promise->waitIfPending() …
› } elseif ($this->waitFn) {
› $this->invokeWaitFn();
› } elseif ($this->waitList) {
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:269 {
GuzzleHttp\Promise\Promise->invokeWaitList() …
› do {
› $result->waitIfPending();
› $result = $result->result;
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:226 {
GuzzleHttp\Promise\Promise->waitIfPending() …
› } elseif ($this->waitList) {
› $this->invokeWaitList();
› } else {
}
/home/ploi/pogled.ba/vendor/guzzlehttp/promises/src/Promise.php:62 {
GuzzleHttp\Promise\Promise->wait($unwrap = true) …
› {
› $this->waitIfPending();
›
}
/home/ploi/pogled.ba/vendor/guzzlehttp/guzzle/src/Client.php:182 {
GuzzleHttp\Client->request($method, $uri = '', array $options = []) …
› $options[RequestOptions::SYNCHRONOUS] = true;
› return $this->requestAsync($method, $uri, $options)->wait();
› }
}
/home/ploi/pogled.ba/app/Http/Connections/RestConnection.php:34 {
App\Http\Connections\RestConnection->get(string $uri) …
› {
› return $result = $this->client->request('GET', config('rest.api_url') . $uri);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261 {
Illuminate\Support\Facades\Facade::__callStatic($method, $args) …
›
› return $instance->$method(...$args);
› }
}
/home/ploi/pogled.ba/app/Http/Controllers/ArticleController.php:71 {
App\Http\Controllers\ArticleController->redirectOldUrl(string $slug, int $id) …
› {
› $response = Rest::get('api/articles-by-slug/' . $slug);
› $article = collect(json_decode($response->getBody()))->get('data');
}
App\Http\Controllers\ArticleController->redirectOldUrl() {}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
Illuminate\Routing\Controller->callAction($method, $parameters) …
› {
› return call_user_func_array([$this, $method], $parameters);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
Illuminate\Routing\ControllerDispatcher->dispatch(Route $route, $controller, $method) …
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Route.php:239 {
Illuminate\Routing\Route->runController() …
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Route.php:196 {
Illuminate\Routing\Route->run() …
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685 {
Illuminate\Routing\Router->Illuminate\Routing\{closure} …
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:77 {
Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
› ) {
› return tap($next($request), function ($response) use ($request) {
› if ($this->shouldAddXsrfTokenCookie()) {
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116 {
Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Request $request, $session, Closure $next) …
›
› $response = $next($request);
›
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62 {
Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
› } else {
› return $this->handleStatefulRequest($request, $session, $next);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
› {
› $response = $next($request);
›
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687 {
Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
› );
› });
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662 {
Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628 {
Illuminate\Routing\Router->dispatchToRoute(Request $request) …
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617 {
Illuminate\Routing\Router->dispatch(Request $request) …
›
› return $this->dispatchToRoute($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165 {
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
›
› return $this->router->dispatch($request);
› };
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 {
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/fruitcake/laravel-cors/src/HandleCors.php:37 {
Fruitcake\Cors\HandleCors->handle($request, Closure $next) …
› if (! $this->shouldRun($request)) {
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/fideloper/proxy/src/TrustProxies.php:57 {
Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
}
/home/ploi/pogled.ba/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Throwable $e) {
}
/home/ploi/pogled.ba/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
}
}
}