Telegram API error. Description: Not Found (500 Whoops, looks like something went wrong.)

Telegram API error. Description: Not Found

Exception

RuntimeException

  1.             throw new RuntimeException('Telegram API error. Description: No response');
  2.         }
  3.         $result json_decode($resulttrue);
  4.         if ($result['ok'] === false) {
  5.             throw new RuntimeException('Telegram API error. Description: ' $result['description']);
  6.         }
  7.     }
  8.     /**
  9.      * Handle a message that is too long: truncates or splits into several
  1.         foreach ($messages as $key => $msg) {
  2.             if ($this->delayBetweenMessages && $key 0) {
  3.                 sleep(1);
  4.             }
  5.             $this->sendCurl($msg);
  6.         }
  7.     }
  8.     protected function sendCurl(string $message): void
  9.     {
  1.         $key $this->keyGenerate($record);
  2.         if (false === $this->keyExist($key)) {
  3.             $this->firedMessages[$key] = $record;
  4.             Cache::add($key$record120);
  5.             $this->send($record['formatted']);
  6.         }
  7.     }
  8.     private function keyExist(string $key): bool
  9.     {
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}()

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Not Found

  at /home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
  at Monolog\Handler\TelegramBotHandler->sendCurl()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
  at Monolog\Handler\TelegramBotHandler->send()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
  at App\Classes\Logger\Handler\TelegramHandler->write()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:400)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:586)
  at Monolog\Logger->log()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/hetzner.solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:36)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
syntax error, unexpected end of file (500 Whoops, looks like something went wrong.)

syntax error, unexpected end of file

Exception

ParseError

  1.         <div class="scroll-seo-text">
  2.             <?php echo renderArticle(509?>
  3.         </div>
  4.     </div>
  5. <?}?>
  1. if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
  2.     die; // TODO refactor - баг коли любий аякс на index.php
  3.     require('r_spisok.php');
  4. } else {
  5.     require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6. }
  7. require(DIR_WS_INCLUDES 'application_bottom.php');
  8. ?>

Stack Trace

ParseError
ParseError:
syntax error, unexpected end of file

  at /home/solomono/web/hetzner.solomono.net/templates/content/index_products.tpl.php:63
  at require()
     (/home/solomono/web/hetzner.solomono.net/index.php:164)                
Telegram API error. Description: Not Found (500 Whoops, looks like something went wrong.)

Telegram API error. Description: Not Found

Exception

RuntimeException

  1.             throw new RuntimeException('Telegram API error. Description: No response');
  2.         }
  3.         $result json_decode($resulttrue);
  4.         if ($result['ok'] === false) {
  5.             throw new RuntimeException('Telegram API error. Description: ' $result['description']);
  6.         }
  7.     }
  8.     /**
  9.      * Handle a message that is too long: truncates or splits into several
  1.         foreach ($messages as $key => $msg) {
  2.             if ($this->delayBetweenMessages && $key 0) {
  3.                 sleep(1);
  4.             }
  5.             $this->sendCurl($msg);
  6.         }
  7.     }
  8.     protected function sendCurl(string $message): void
  9.     {
  1.         $key $this->keyGenerate($record);
  2.         if (false === $this->keyExist($key)) {
  3.             $this->firedMessages[$key] = $record;
  4.             Cache::add($key$record120);
  5.             $this->send($record['formatted']);
  6.         }
  7.     }
  8.     private function keyExist(string $key): bool
  9.     {
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Not Found

  at /home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
  at Monolog\Handler\TelegramBotHandler->sendCurl()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
  at Monolog\Handler\TelegramBotHandler->send()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
  at App\Classes\Logger\Handler\TelegramHandler->write()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:400)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:586)
  at Monolog\Logger->log()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/hetzner.solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:108)
  at Bootstrap\HandleExceptions->handleShutdown()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:40)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
Exception thrown without a stack frame (500 Whoops, looks like something went wrong.)

Exception thrown without a stack frame

Exception

Error

  1.      * @param int|null $traceOffset
  2.      * @return \Error
  3.      */
  4.     protected function fatalErrorFromPhpError(array $error$traceOffset null)
  5.     {
  6.         return new \Error($error['message'], 0);
  7.     }
  8. }
HandleExceptions->fatalErrorFromPhpError() in /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

Error
Error:
Exception thrown without a stack frame

  at /home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:129
  at Bootstrap\HandleExceptions->fatalErrorFromPhpError()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:108)
  at Bootstrap\HandleExceptions->handleShutdown()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:40)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()