<tlher class="qzfdv"></tlher>

全网担保网

Symfony Exception

RedisException

HTTP 500 Internal Server Error

MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

Exception

RedisException

  1.         if (Str::contains($agent, ['Baiduspider''Sogou web spider''YoudaoBot''360Spider''Bytespider''Yisou'])){
  2.             if(Str::of($url)->endsWith(['.js''.css''.jpg''.png''.ico'])){
  3.                 return $next($request);
  4.             }else{
  5.                 $spider_type check_spider();
  6.                 $client->incr($spider_type.'_hours_'.date('m-d H:00'));
  7.                 $client->incr($spider_type.'_daily_'.date('m-d'));
  8.                 $path_domains get_path_settings();
  9.                 if($path_domains['local_domain'] == 'default.example.com'){
  10.                     $scheme request()->getScheme();
  11.                     $server_name $_SERVER['HTTP_HOST'];
  1.         if (Str::contains($agent, ['Baiduspider''Sogou web spider''YoudaoBot''360Spider''Bytespider''Yisou'])){
  2.             if(Str::of($url)->endsWith(['.js''.css''.jpg''.png''.ico'])){
  3.                 return $next($request);
  4.             }else{
  5.                 $spider_type check_spider();
  6.                 $client->incr($spider_type.'_hours_'.date('m-d H:00'));
  7.                 $client->incr($spider_type.'_daily_'.date('m-d'));
  8.                 $path_domains get_path_settings();
  9.                 if($path_domains['local_domain'] == 'default.example.com'){
  10.                     $scheme request()->getScheme();
  11.                     $server_name $_SERVER['HTTP_HOST'];
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
Pipeline->Laravel\Lumen\Routing\{closure}() in /www/wwwroot/lzsecondhospital.com/app/Http/Middleware/StaticMiddleware.php (line 49)
  1.             }else{
  2.                 abort(404);
  3.             }
  4.         }
  5.         return $next($request);
  6.     }
  7. }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
Pipeline->Laravel\Lumen\Routing\{closure}() in /www/wwwroot/lzsecondhospital.com/app/Http/Middleware/BlackListMiddleware.php (line 33)
  1.         # 屏蔽请求头 'Bytespider',
  2.         $black_agent = ['Googlebot','bingbot','MJ12bot','AhrefsBot','DNSPod-Monitor','BLEXBot','EasouSpider','YandexBot','TestBot/0.1','SemrushBot',];
  3.         if(Str::of($request->server('HTTP_USER_AGENT'))->contains($black_agent)){
  4.             return response(view('path.error.nginx'), 404);
  5.         }
  6.         return $next($request);
  7.     }
  8. }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.     {
  2.         if (count($middleware) > && ! $this->shouldSkipMiddleware()) {
  3.             return (new Pipeline($this))
  4.                 ->send($this->make('request'))
  5.                 ->through($middleware)
  6.                 ->then($then);
  7.         }
  8.         return $then($this->make('request'));
  9.     }
  1.         if (isset($action['middleware'])) {
  2.             $middleware $this->gatherMiddlewareClassNames($action['middleware']);
  3.             return $this->prepareResponse($this->sendThroughPipeline($middleware, function () {
  4.                 return $this->callActionOnArrayBasedRoute($this['request']->route());
  5.             }));
  6.         }
  7.         return $this->prepareResponse(
  8.             $this->callActionOnArrayBasedRoute($routeInfo)
  9.         );
  1.             case Dispatcher::NOT_FOUND:
  2.                 throw new NotFoundHttpException;
  3.             case Dispatcher::METHOD_NOT_ALLOWED:
  4.                 throw new MethodNotAllowedHttpException($routeInfo[1]);
  5.             case Dispatcher::FOUND:
  6.                 return $this->handleFoundRoute($routeInfo);
  7.         }
  8.     }
  9.     /**
  10.      * Handle a route found by the dispatcher.
  1.                 if (isset($this->router->getRoutes()[$method.$pathInfo])) {
  2.                     return $this->handleFoundRoute([true$this->router->getRoutes()[$method.$pathInfo]['action'], []]);
  3.                 }
  4.                 return $this->handleDispatcherResponse(
  5.                     $this->createDispatcher()->dispatch($method$pathInfo)
  6.                 );
  7.             });
  8.         } catch (Throwable $e) {
  9.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  10.         }
  1.                 ->send($this->make('request'))
  2.                 ->through($middleware)
  3.                 ->then($then);
  4.         }
  5.         return $then($this->make('request'));
  6.     }
  7.     /**
  8.      * Prepare the response for sending.
  9.      *
  1.                 }
  2.                 return $this->handleDispatcherResponse(
  3.                     $this->createDispatcher()->dispatch($method$pathInfo)
  4.                 );
  5.             });
  6.         } catch (Throwable $e) {
  7.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  8.         }
  9.     }
  1.      * @param  \Symfony\Component\HttpFoundation\Request|null  $request
  2.      * @return void
  3.      */
  4.     public function run($request null)
  5.     {
  6.         $response $this->dispatch($request);
  7.         if ($response instanceof SymfonyResponse) {
  8.             $response->send();
  9.         } else {
  10.             echo (string) $response;
  1. | the client's browser allowing them to enjoy the creative
  2. | and wonderful application we have prepared for them.
  3. |
  4. */
  5. $app->run();

Stack Trace

RedisException
RedisException:
MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

  at /www/wwwroot/lzsecondhospital.com/app/Http/Middleware/LoggingMiddleware.php:35
  at Redis->incr()
     (/www/wwwroot/lzsecondhospital.com/app/Http/Middleware/LoggingMiddleware.php:35)
  at App\Http\Middleware\LoggingMiddleware->handle()
     (/www/wwwroot/lzsecondhospital.com/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
     (/www/wwwroot/lzsecondhospital.com/app/Http/Middleware/StaticMiddleware.php:49)
  at App\Http\Middleware\StaticMiddleware->handle()
     (/www/wwwroot/lzsecondhospital.com/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
     (/www/wwwroot/lzsecondhospital.com/app/Http/Middleware/BlackListMiddleware.php:33)
  at App\Http\Middleware\BlackListMiddleware->handle()
     (/www/wwwroot/lzsecondhospital.com/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
     (/www/wwwroot/lzsecondhospital.com/vendor/illuminate/pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:426)
  at Laravel\Lumen\Application->sendThroughPipeline()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:263)
  at Laravel\Lumen\Application->handleFoundRoute()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:237)
  at Laravel\Lumen\Application->handleDispatcherResponse()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:173)
  at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:429)
  at Laravel\Lumen\Application->sendThroughPipeline()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:175)
  at Laravel\Lumen\Application->dispatch()
     (/www/wwwroot/lzsecondhospital.com/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:112)
  at Laravel\Lumen\Application->run()
     (/www/wwwroot/lzsecondhospital.com/public/index.php:28)