Symfony Exception

ConnectionException

HTTP 500 Internal Server Error

Error while reading line from the server. [tcp://127.0.0.1:6379]

Exception

Predis\Connection\ ConnectionException

  1.      * @param int    $code    Error code.
  2.      */
  3.     protected function onConnectionError($message$code 0)
  4.     {
  5.         CommunicationException::handle(
  6.             new ConnectionException($this"$message [{$this->getParameters()}]"$code)
  7.         );
  8.     }
  9.     /**
  10.      * Helper method to handle protocol errors.
  1.     {
  2.         $socket $this->getResource();
  3.         $chunk fgets($socket);
  4.         if ($chunk === false || $chunk === '') {
  5.             $this->onConnectionError('Error while reading line from the server.');
  6.         }
  7.         $prefix $chunk[0];
  8.         $payload substr($chunk1, -2);
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function readResponse(CommandInterface $command)
  5.     {
  6.         return $this->read();
  7.     }
  8.     /**
  9.      * Helper method to handle connection errors.
  10.      *
  1.      */
  2.     public function executeCommand(CommandInterface $command)
  3.     {
  4.         $this->writeRequest($command);
  5.         return $this->readResponse($command);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.      */
  2.     public function connect()
  3.     {
  4.         if (parent::connect() && $this->initCommands) {
  5.             foreach ($this->initCommands as $command) {
  6.                 $response $this->executeCommand($command);
  7.                 if ($response instanceof ErrorResponseInterface && $command->getId() === 'CLIENT') {
  8.                     // Do nothing on CLIENT SETINFO command failure
  9.                 } elseif ($response instanceof ErrorResponseInterface) {
  10.                     $this->onConnectionError("`{$command->getId()}` failed: {$response->getMessage()}"0);
  1.     {
  2.         if (isset($this->resource)) {
  3.             return $this->resource;
  4.         }
  5.         $this->connect();
  6.         return $this->resource;
  7.     }
  8.     /**
  1.      *
  2.      * @param string $buffer Representation of a command in the Redis wire protocol.
  3.      */
  4.     protected function write($buffer)
  5.     {
  6.         $socket $this->getResource();
  7.         while (($length strlen($buffer)) > 0) {
  8.             $written is_resource($socket) ? @fwrite($socket$buffer) : false;
  9.             if ($length === $written) {
  1.         foreach ($arguments as $argument) {
  2.             $arglen strlen(strval($argument));
  3.             $buffer .= "\${$arglen}\r\n{$argument}\r\n";
  4.         }
  5.         $this->write($buffer);
  6.     }
  7. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function executeCommand(CommandInterface $command)
  5.     {
  6.         $this->writeRequest($command);
  7.         return $this->readResponse($command);
  8.     }
  9.     /**
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function executeCommand(CommandInterface $command)
  5.     {
  6.         $response $this->connection->executeCommand($command);
  7.         if ($response instanceof ResponseInterface) {
  8.             if ($response instanceof ErrorResponseInterface) {
  9.                 $response $this->onErrorResponse($command$response);
  10.             }
  1.      * {@inheritdoc}
  2.      */
  3.     public function __call($commandID$arguments)
  4.     {
  5.         return $this->executeCommand(
  6.             $this->createCommand($commandID$arguments)
  7.         );
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.      */
  2.     public function command($method, array $parameters = [])
  3.     {
  4.         $start microtime(true);
  5.         $result $this->client->{$method}(...$parameters);
  6.         $time round((microtime(true) - $start) * 10002);
  7.         if (isset($this->events)) {
  8.             $this->event(new CommandExecuted(
  1.     {
  2.         if (static::hasMacro($method)) {
  3.             return $this->macroCall($method$parameters);
  4.         }
  5.         return $this->command($method$parameters);
  6.     }
  7. }
  1.      * @param  string|array  $key
  2.      * @return mixed
  3.      */
  4.     public function get($key)
  5.     {
  6.         $value $this->connection()->get($this->prefix.$key);
  7.         return ! is_null($value) ? $this->unserialize($value) : null;
  8.     }
  9.     /**
  1.     {
  2.         if (is_array($key)) {
  3.             return $this->many($key);
  4.         }
  5.         $value $this->store->get($this->itemKey($key));
  6.         // If we could not find the cache value, we will fire the missed event and get
  7.         // the default value for this cache value. This default could be a callback
  8.         // so we will execute the value function which will resolve it if needed.
  9.         if (is_null($value)) {
  1.      * @param  array|string  $key
  2.      * @return bool
  3.      */
  4.     public function has($key): bool
  5.     {
  6.         return ! is_null($this->get($key));
  7.     }
  8.     /**
  9.      * Determine if an item doesn't exist in the cache.
  10.      *
  1.      * @param  array  $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call($method$parameters)
  5.     {
  6.         return $this->store()->$method(...$parameters);
  7.     }
  8. }
CacheManager->__call('has', array('plugin_namespaces')) in /home/samsung2/public_html/te/base/src/Providers/PluginServiceProvider.php (line 81)
  1.             $providers = [];
  2.             $namespaces = [];
  3.             $cachekey_namespaces 'plugin_namespaces';
  4.             $cachekey_providers  'plugin_providers';
  5.             if (cache()->has($cachekey_namespaces) && cache()->has($cachekey_providers)) {
  6.                 $providers cache($cachekey_providers);
  7.                 if (!is_array($providers) || empty($providers)) {
  8.                     $providers = [];
  9.                 }
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  ...$args
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value, ...$args)
  5.     {
  6.         return $value instanceof Closure $value(...$args) : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.         if ($container->hasMethodBinding($method)) {
  2.             return $container->callMethodBinding($method$callback[0]);
  3.         }
  4.         return Util::unwrapIfClosure($default);
  5.     }
  6.     /**
  7.      * Normalize the given callback into a Class@method string.
  8.      *
  1.             return static::callClass($container$callback$parameters$defaultMethod);
  2.         }
  3.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * Call a string reference to a class using Class@method syntax.
  9.      *
  1.             $this->buildStack[] = $className;
  2.             $pushedToBuildStack true;
  3.         }
  4.         $result BoundMethod::call($this$callback$parameters$defaultMethod);
  5.         if ($pushedToBuildStack) {
  6.             array_pop($this->buildStack);
  7.         }
  1.     protected function bootProvider(ServiceProvider $provider)
  2.     {
  3.         $provider->callBootingCallbacks();
  4.         if (method_exists($provider'boot')) {
  5.             $this->call([$provider'boot']);
  6.         }
  7.         $provider->callBootedCallbacks();
  8.     }
  1.         // for any listeners that need to do work after this initial booting gets
  2.         // finished. This is useful when ordering the boot-up processes we run.
  3.         $this->fireAppCallbacks($this->bootingCallbacks);
  4.         array_walk($this->serviceProviders, function ($p) {
  5.             $this->bootProvider($p);
  6.         });
  7.         $this->booted true;
  8.         $this->fireAppCallbacks($this->bootedCallbacks);
Application->Illuminate\Foundation\{closure}(object(PluginServiceProvider), 34)
  1.         // finished. This is useful when ordering the boot-up processes we run.
  2.         $this->fireAppCallbacks($this->bootingCallbacks);
  3.         array_walk($this->serviceProviders, function ($p) {
  4.             $this->bootProvider($p);
  5.         });
  6.         $this->booted true;
  7.         $this->fireAppCallbacks($this->bootedCallbacks);
  8.     }
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->boot();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle(object(Request)) in /home/samsung2/public_html/public/index.php (line 73)
  1. Cache::get($cacheKey);
  2. */
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

Stack Trace

ConnectionException
Predis\Connection\ConnectionException:
Error while reading line from the server. [tcp://127.0.0.1:6379]

  at /home/samsung2/public_html/vendor/predis/predis/src/Connection/AbstractConnection.php:144
  at Predis\Connection\AbstractConnection->onConnectionError('Error while reading line from the server.')
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/StreamConnection.php:291)
  at Predis\Connection\StreamConnection->read()
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/AbstractConnection.php:132)
  at Predis\Connection\AbstractConnection->readResponse(object(RawCommand))
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/AbstractConnection.php:124)
  at Predis\Connection\AbstractConnection->executeCommand(object(RawCommand))
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/StreamConnection.php:232)
  at Predis\Connection\StreamConnection->connect()
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/AbstractConnection.php:169)
  at Predis\Connection\AbstractConnection->getResource()
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/StreamConnection.php:265)
  at Predis\Connection\StreamConnection->write('*2
$3
GET
$41
samsungazetesicom:cache:plugin_namespaces
')
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/StreamConnection.php:372)
  at Predis\Connection\StreamConnection->writeRequest(object(GET))
     (/home/samsung2/public_html/vendor/predis/predis/src/Connection/AbstractConnection.php:122)
  at Predis\Connection\AbstractConnection->executeCommand(object(GET))
     (/home/samsung2/public_html/vendor/predis/predis/src/Client.php:381)
  at Predis\Client->executeCommand(object(GET))
     (/home/samsung2/public_html/vendor/predis/predis/src/Client.php:336)
  at Predis\Client->__call('get', array('plugin_namespaces'))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php:116)
  at Illuminate\Redis\Connections\Connection->command('get', array('plugin_namespaces'))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php:229)
  at Illuminate\Redis\Connections\Connection->__call('get', array('plugin_namespaces'))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php:62)
  at Illuminate\Cache\RedisStore->get('plugin_namespaces')
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:99)
  at Illuminate\Cache\Repository->get('plugin_namespaces')
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:70)
  at Illuminate\Cache\Repository->has('plugin_namespaces')
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408)
  at Illuminate\Cache\CacheManager->__call('has', array('plugin_namespaces'))
     (/home/samsung2/public_html/te/base/src/Providers/PluginServiceProvider.php:81)
  at TE\Base\Providers\PluginServiceProvider->boot()
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php:41)
  at Illuminate\Container\Util::unwrapIfClosure(object(Closure))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93)
  at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), array(object(PluginServiceProvider), 'boot'), object(Closure))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
  at Illuminate\Container\BoundMethod::call(object(Application), array(object(PluginServiceProvider), 'boot'), array(), null)
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:661)
  at Illuminate\Container\Container->call(array(object(PluginServiceProvider), 'boot'))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:929)
  at Illuminate\Foundation\Application->bootProvider(object(PluginServiceProvider))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:910)
  at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(object(PluginServiceProvider), 34)
  at array_walk(array(object(EventServiceProvider), object(LogServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FormRequestServiceProvider), object(ParallelTestingServiceProvider), object(FoundationServiceProvider), object(NotificationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(MarkdownServiceProvider), object(ServiceProvider), object(ServiceProvider), object(ServiceProvider), object(TextToSpeechServiceProvider), object(CorsServiceProvider), object(ImageServiceProvider), object(FormBuilderServiceProvider), object(ImpersonateServiceProvider), object(SanctumServiceProvider), object(ServiceProvider), object(ExcelServiceProvider), object(PurifierServiceProvider), object(ServiceProvider), object(TermwindServiceProvider), object(AmpServiceProvider), object(BackupServiceProvider), object(CacheServiceProvider), object(SettingsServiceProvider), object(PluginServiceProvider), object(BaseServiceProvider), object(CommandServiceProvider), object(EventServiceProvider), object(SupportServiceProvider), object(RouteServiceProvider), object(BladeServiceProvider), object(ViewComposerServiceProvider), object(CountriesServiceProvider), object(FormServiceProvider), object(BreadcrumbsServiceProvider), object(BigdataServiceProvider), object(CategoryServiceProvider), object(ContactServiceProvider), object(DashboardServiceProvider), object(LogViewerServiceProvider), object(MaintenanceModeServiceProvider), object(MediaServiceProvider), object(MemberServiceProvider), object(MenuServiceProvider), object(MobileServiceProvider), object(MobileappServiceProvider), object(PageServiceProvider), object(RedirectionServiceProvider), object(SeoHelperServiceProvider), object(ShortcodeServiceProvider), object(SitemapServiceProvider), object(SlugServiceProvider), object(TableServiceProvider), object(RouteServiceProvider), object(ThemeServiceProvider), object(UsersServiceProvider), object(WidgetServiceProvider), object(ZiggyServiceProvider), object(HtmlServiceProvider), object(HtmlServiceProvider), object(ButtonsServiceProvider), object(DataTablesServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(CacheServiceProvider), object(RedisServiceProvider), object(CommandServiceProvider)), object(Closure))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:911)
  at Illuminate\Foundation\Application->boot()
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
  at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(object(Application))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/home/samsung2/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/home/samsung2/public_html/public/index.php:73)