| exception |
Symfony\Component\HttpClient\Exception\ClientException {#438
#message: "HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/posts?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"."
#code: 401
#file: "/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-client/Response/TraceableResponse.php"
#line: 212
-response: Symfony\Component\HttpClient\Response\TraceableResponse {#331 …}
trace: {
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-client/Response/TraceableResponse.php:212 {
Symfony\Component\HttpClient\Response\TraceableResponse->checkStatusCode(int $code) …
› if (400 <= $code) {
› throw new ClientException($this);
› }
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-client/Response/TraceableResponse.php:103 {
Symfony\Component\HttpClient\Response\TraceableResponse->getContent(bool $throw = true): string …
› if ($throw) {
› $this->checkStatusCode($this->response->getStatusCode());
› }
arguments: {
$code: 401
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Blog.php:228 {
App\Blog->loadBlogPosts(string $after = null): array …
›
› $result = json_decode($response->getContent(), true);
› } catch (HttpExceptionInterface $e) {
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Blog.php:211 {
App\Blog->App\{closure} …
›
› return $this->loadBlogPosts();
› }, $beta);
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Adapter/TraceableAdapter.php:51 {
Symfony\Component\Cache\Adapter\TraceableAdapter->Symfony\Component\Cache\Adapter\{closure} …
›
› return $callback($item, $save);
› };
arguments: {
Symfony\Component\Cache\CacheItem {#220 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/LockRegistry.php:95 {
Symfony\Component\Cache\LockRegistry::compute(callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, Closure $setMetadata = null, LoggerInterface $logger = null) …
› if ($key < 0 || self::$lockedFiles || !$lock = self::open($key)) {
› return $callback($item, $save);
› }
arguments: {
Symfony\Component\Cache\CacheItem {#259 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Traits/ContractsTrait.php:100 {
Symfony\Component\Cache\Adapter\AbstractAdapter->Symfony\Component\Cache\Traits\{closure} …
› $setMetadata($item, $startTime, $metadata);
› }, $this->logger ?? null);
› $setMetadata($item, $startTime, $metadata);
arguments: {
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$item: Symfony\Component\Cache\CacheItem {#220 …}
&$save: true
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$setMetadata: Closure(CacheItem $item) {#211 …}
$logger: Symfony\Bridge\Monolog\Logger {#144 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache-contracts/CacheTrait.php:72 {
Symfony\Component\Cache\Adapter\AbstractAdapter->contractsGet(CacheItemPoolInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null, LoggerInterface $logger = null) …
› $save = true;
› $item->set($callback($item, $save));
› if ($save) {
arguments: {
Symfony\Component\Cache\CacheItem {#220 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Traits/ContractsTrait.php:107 {
Symfony\Component\Cache\Adapter\AbstractAdapter->doGet(AdapterInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null) …
› }
› }, $beta, $metadata, $this->logger ?? null);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#161 …}
$beta: 1.0
&$metadata: []
$logger: Symfony\Bridge\Monolog\Logger {#144 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache-contracts/CacheTrait.php:35 {
Symfony\Component\Cache\Adapter\AbstractAdapter->get(string $key, callable $callback, float $beta = null, array &$metadata = null) …
› {
› return $this->doGet($this, $key, $callback, $beta, $metadata);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$beta: 1.0
&$metadata: []
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Adapter/TraceableAdapter.php:56 {
Symfony\Component\Cache\Adapter\TraceableAdapter->get(string $key, callable $callback, float $beta = null, array &$metadata = null) …
› try {
› $value = $this->pool->get($key, $callback, $beta, $metadata);
› $event->result[$key] = get_debug_type($value);
arguments: {
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$beta: null
&$metadata: []
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Blog.php:208 {
App\Blog->getAllPosts(bool $bustCache = false): array …
› $beta = $bustCache ? INF : null;
› $this->posts = $this->cache->get('blog_posts', function (ItemInterface $item) {
› $item->expiresAfter(86400); // cache for 1 day
arguments: {
$key: "blog_posts"
$callback: Closure(CacheItem $item, bool &$save) {#260 …}
$beta: null
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Blog.php:67 {
App\Blog->getPosts(int $perPage = 3, int $page = 1, string $tag = '', string $author = ''): array …
› $offset = ($page - 1) * $perPage;
› $posts = $this->getAllPosts();
›
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Controller/MarketingController.php:926 {
App\Controller\MarketingController->buildSitemapPages(RouterInterface $router, Request $request, Blog $blog, Content $content): array …
› // add blog routes
› foreach ($blog->getPosts(-1) as $post) {
› $pages[] = [
arguments: {
$perPage: -1
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Controller/MarketingController.php:898 {
App\Controller\MarketingController->App\Controller\{closure} …
›
› return $this->buildSitemapPages($router, $request, $blog, $content);
› });
arguments: {
$router: Symfony\Bundle\FrameworkBundle\Routing\Router {#110 …}
$request: Symfony\Component\HttpFoundation\Request {#54 …}
$blog: App\Blog {#138 …}
$content: App\Content {#219 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Adapter/TraceableAdapter.php:51 {
Symfony\Component\Cache\Adapter\TraceableAdapter->Symfony\Component\Cache\Adapter\{closure} …
›
› return $callback($item, $save);
› };
arguments: {
Symfony\Component\Cache\CacheItem {#220 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/LockRegistry.php:108 {
Symfony\Component\Cache\LockRegistry::compute(callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, Closure $setMetadata = null, LoggerInterface $logger = null) …
›
› $value = $callback($item, $save);
›
arguments: {
Symfony\Component\Cache\CacheItem {#220 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Traits/ContractsTrait.php:100 {
Symfony\Component\Cache\Adapter\AbstractAdapter->Symfony\Component\Cache\Traits\{closure} …
› $setMetadata($item, $startTime, $metadata);
› }, $this->logger ?? null);
› $setMetadata($item, $startTime, $metadata);
arguments: {
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$item: Symfony\Component\Cache\CacheItem {#220 …}
&$save: true
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$setMetadata: Closure(CacheItem $item) {#211 …}
$logger: Symfony\Bridge\Monolog\Logger {#144 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache-contracts/CacheTrait.php:72 {
Symfony\Component\Cache\Adapter\AbstractAdapter->contractsGet(CacheItemPoolInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null, LoggerInterface $logger = null) …
› $save = true;
› $item->set($callback($item, $save));
› if ($save) {
arguments: {
Symfony\Component\Cache\CacheItem {#220 …}
true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Traits/ContractsTrait.php:107 {
Symfony\Component\Cache\Adapter\AbstractAdapter->doGet(AdapterInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null) …
› }
› }, $beta, $metadata, $this->logger ?? null);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#161 …}
$beta: 1.0
&$metadata: []
$logger: Symfony\Bridge\Monolog\Logger {#144 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache-contracts/CacheTrait.php:35 {
Symfony\Component\Cache\Adapter\AbstractAdapter->get(string $key, callable $callback, float $beta = null, array &$metadata = null) …
› {
› return $this->doGet($this, $key, $callback, $beta, $metadata);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\FilesystemAdapter {#142 …}
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$beta: 1.0
&$metadata: []
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/cache/Adapter/TraceableAdapter.php:56 {
Symfony\Component\Cache\Adapter\TraceableAdapter->get(string $key, callable $callback, float $beta = null, array &$metadata = null) …
› try {
› $value = $this->pool->get($key, $callback, $beta, $metadata);
› $event->result[$key] = get_debug_type($value);
arguments: {
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
$beta: null
&$metadata: []
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/src/Controller/MarketingController.php:899 {
App\Controller\MarketingController->sitemapXml(RouterInterface $router, Request $request, CacheInterface $cache, Blog $blog, Content $content): Response …
› return $this->buildSitemapPages($router, $request, $blog, $content);
› });
› // build the sitemap.xml file using Twig
arguments: {
$key: "sitemap_xml"
$callback: Closure(CacheItem $item, bool &$save) {#212 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-kernel/HttpKernel.php:152 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$router: Symfony\Bundle\FrameworkBundle\Routing\Router {#110 …}
$request: Symfony\Component\HttpFoundation\Request {#54 …}
$cache: Symfony\Component\Cache\Adapter\TraceableAdapter {#140 …}
$blog: App\Blog {#138 …}
$content: App\Content {#219 …}
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-kernel/HttpKernel.php:74 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#54 …}
$type: 1
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#54 …}
$type: 1
$catch: true
}
}
/var/www/invoiced/data/www/invoiced.project-release.info/public/index.php:34 {
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#54 …}
}
}
}
} |