https://www.invoiced.project-release.info/product/integrations/quickbooks

HTTP Client

1 Total requests
1 HTTP errors

Clients

http_client 1

Requests

GET https://api.hubapi.com/cms/v3/blogs/authors
[
  "query" => [
    "hapikey" => "41d1972b-a2ce-454d-9e57-cd6355e00240"
    "after" => null
  ]
]
401
[
  "info" => [
    "header_size" => 1109
    "request_size" => 176
    "total_time" => 0.294332
    "namelookup_time" => 0.001024
    "connect_time" => 0.00655
    "pretransfer_time" => 0.021946
    "size_download" => 294.0
    "speed_download" => 1000.0
    "download_content_length" => 294.0
    "starttransfer_time" => 0.293627
    "primary_ip" => "2606:4700::6810:334e"
    "primary_port" => 443
    "local_ip" => "2a01:4f8:211:2d25::2"
    "local_port" => 44122
    "http_version" => 3
    "protocol" => 2
    "scheme" => "HTTPS"
    "start_time" => 1766000373.0601
    "pause_handler" => Closure(float $duration) {#528
      class: "Symfony\Component\HttpClient\Response\CurlResponse"
      use: {
        $ch: CurlHandle {#518 …}
        $multi: Symfony\Component\HttpClient\Internal\CurlClientState {#178 …}
        $execCounter: -9223372036854775808
      }
    }
    "debug" => """
      *   Trying 2606:4700::6810:334e...\n
      * TCP_NODELAY set\n
      * Connected to api.hubapi.com (2606:4700::6810:334e) port 443 (#0)\n
      * ALPN, offering h2\n
      * ALPN, offering http/1.1\n
      * successfully set certificate verify locations:\n
      *   CAfile: /etc/ssl/certs/ca-certificates.crt\n
        CApath: /etc/ssl/certs\n
      * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384\n
      * ALPN, server accepted to use h2\n
      * Server certificate:\n
      *  subject: CN=hubapi.com\n
      *  start date: Oct 27 19:01:52 2025 GMT\n
      *  expire date: Jan 25 20:01:49 2026 GMT\n
      *  subjectAltName: host "api.hubapi.com" matched cert's "*.hubapi.com"\n
      *  issuer: C=US; O=Google Trust Services; CN=WE1\n
      *  SSL certificate verify ok.\n
      * Using HTTP2, server supports multi-use\n
      * Connection state changed (HTTP/2 confirmed)\n
      * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0\n
      * Using Stream ID: 1 (easy handle 0x56549c73aef0)\n
      > GET /cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240 HTTP/2\r\n
      Host: api.hubapi.com\r\n
      Accept: */*\r\n
      User-Agent: Symfony HttpClient/Curl\r\n
      Accept-Encoding: gzip\r\n
      \r\n
      * Connection state changed (MAX_CONCURRENT_STREAMS updated)!\n
      < HTTP/2 401 \r\n
      < date: Wed, 17 Dec 2025 19:39:33 GMT\r\n
      < content-type: application/json;charset=utf-8\r\n
      < content-length: 294\r\n
      < cf-ray: 9af8e31bce552bec-FRA\r\n
      < cf-cache-status: DYNAMIC\r\n
      < strict-transport-security: max-age=31536000; includeSubDomains; preload\r\n
      < vary: origin, Accept-Encoding\r\n
      < access-control-allow-credentials: false\r\n
      < x-content-type-options: nosniff\r\n
      < x-hubspot-auth-failure: 401 Unauthorized\r\n
      < x-hubspot-correlation-id: 3b794dc0-3a47-4c8f-9d89-8f1d7447cd82\r\n
      * cookie size: name/val 7 + 170 bytes\n
      * cookie size: name/val 4 + 1 bytes\n
      * cookie size: name/val 7 + 27 bytes\n
      * cookie size: name/val 6 + 11 bytes\n
      * cookie size: name/val 8 + 0 bytes\n
      * cookie size: name/val 6 + 0 bytes\n
      * cookie size: name/val 8 + 4 bytes\n
      * Added cookie __cf_bm="rmZm3NRmpbaBfReXT1otdzBcLIDDACRANgtlTNrLD.o-1766000373-1.0.1.1-zqzCLKkofbadxUhysOG43fM4SGKvKdOcIX2qH50bu_e5NDOuIeoOVpSDqSaq1mpkahmUvDmMtD6VQ6B.RnxCgD1uz.8XAdCCBdlEcc5DOqM" for domain hubapi.com, path /, expire 1766002173\n
      < set-cookie: __cf_bm=rmZm3NRmpbaBfReXT1otdzBcLIDDACRANgtlTNrLD.o-1766000373-1.0.1.1-zqzCLKkofbadxUhysOG43fM4SGKvKdOcIX2qH50bu_e5NDOuIeoOVpSDqSaq1mpkahmUvDmMtD6VQ6B.RnxCgD1uz.8XAdCCBdlEcc5DOqM; path=/; expires=Wed, 17-Dec-25 20:09:33 GMT; domain=.hubapi.com; HttpOnly; Secure; SameSite=None\r\n
      < report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=opZrW6WOmI3QBPN2i9evr7rYI41UVYnvkRX%2BCsXxcNkvObIPTCF0X90YPkrQSWsVMqt3dcTHHQ%2FZvKurooJ3hukmwalAPZv9tIz8Gr1%2FJTvTMk7rhw56UZ7FRx9CqZlWnYnoaxgyrvAiUH%2Fw"}],"group":"cf-nel","max_age":604800}\r\n
      < nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}\r\n
      < server: cloudflare\r\n
      < \r\n
      """
  ]
  "url" => "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"
  "response_headers" => [
    "HTTP/2 401 "
    "date: Wed, 17 Dec 2025 19:39:33 GMT"
    "content-type: application/json;charset=utf-8"
    "content-length: 294"
    "cf-ray: 9af8e31bce552bec-FRA"
    "cf-cache-status: DYNAMIC"
    "strict-transport-security: max-age=31536000; includeSubDomains; preload"
    "vary: origin, Accept-Encoding"
    "access-control-allow-credentials: false"
    "x-content-type-options: nosniff"
    "x-hubspot-auth-failure: 401 Unauthorized"
    "x-hubspot-correlation-id: 3b794dc0-3a47-4c8f-9d89-8f1d7447cd82"
    "set-cookie: __cf_bm=rmZm3NRmpbaBfReXT1otdzBcLIDDACRANgtlTNrLD.o-1766000373-1.0.1.1-zqzCLKkofbadxUhysOG43fM4SGKvKdOcIX2qH50bu_e5NDOuIeoOVpSDqSaq1mpkahmUvDmMtD6VQ6B.RnxCgD1uz.8XAdCCBdlEcc5DOqM; path=/; expires=Wed, 17-Dec-25 20:09:33 GMT; domain=.hubapi.com; HttpOnly; Secure; SameSite=None"
    "report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=opZrW6WOmI3QBPN2i9evr7rYI41UVYnvkRX%2BCsXxcNkvObIPTCF0X90YPkrQSWsVMqt3dcTHHQ%2FZvKurooJ3hukmwalAPZv9tIz8Gr1%2FJTvTMk7rhw56UZ7FRx9CqZlWnYnoaxgyrvAiUH%2Fw"}],"group":"cf-nel","max_age":604800}"
    "nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}"
    "server: cloudflare"
  ]
  "response_content" => [
    "{"category":"EXPIRED_AUTHENTICATION","correlationId":"3b794dc0-3a47-4c8f-9d89-8f1d7447cd82","links":{"api key":"https://app.hubspot.com/l/api-key/"},"message":"The API key used to make this call is expired. View or manage your API key here: https://app.hubspot.com/l/api-key/","status":"error"}"
  ]
]
HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240". (500 Internal Server Error)

Symfony Exception

ClientException

HTTP 500 Internal Server Error

HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".

Exception

Symfony\Component\HttpClient\Exception\ ClientException

  1.         if (500 <= $code) {
  2.             throw new ServerException($this);
  3.         }
  4.         if (400 <= $code) {
  5.             throw new ClientException($this);
  6.         }
  7.         if (300 <= $code) {
  8.             throw new RedirectionException($this);
  9.         }
  1.         } finally {
  2.             if ($this->event && $this->event->isStarted()) {
  3.                 $this->event->stop();
  4.             }
  5.             if ($throw) {
  6.                 $this->checkStatusCode($this->response->getStatusCode());
  7.             }
  8.         }
  9.     }
  10.     public function toArray(bool $throw true): array
TraceableResponse->getContent() in src/Blog.php (line 181)
  1.                     'hapikey' => $this->hubSpotKey,
  2.                     'after' => $after,
  3.                 ],
  4.             ]);
  5.             $result json_decode($response->getContent(), true);
  6.         } catch (HttpExceptionInterface $e) {
  7.             $this->logger->error('Could not load blog posts from HubSpot', ['exception' => $e]);
  8.             throw $e;
  9.         }
Blog->loadBlogAuthors() in src/Blog.php (line 152)
  1.         if (!isset($this->authors)) {
  2.             $beta $bustCache INF null;
  3.             $this->authors $this->cache->get('blog_authors', function (ItemInterface $item) {
  4.                 $item->expiresAfter(86400); // cache for 1 day
  5.                 return $this->loadBlogAuthors();
  6.             }, $beta);
  7.         }
  8.         return $this->authors;
  9.     }
  1.         $isHit true;
  2.         $callback = function (CacheItem $itembool &$save) use ($callback, &$isHit) {
  3.             $isHit $item->isHit();
  4.             return $callback($item$save);
  5.         };
  6.         $event $this->start(__FUNCTION__);
  7.         try {
  8.             $value $this->pool->get($key$callback$beta$metadata);
in vendor/symfony/cache/LockRegistry.php -> Symfony\Component\Cache\Adapter\{closure} (line 108)
  1.                 if ($locked || !$wouldBlock) {
  2.                     $logger && $logger->info(sprintf('Lock %s, now computing item "{key}"'$locked 'acquired' 'not supported'), ['key' => $item->getKey()]);
  3.                     self::$lockedFiles[$key] = true;
  4.                     $value $callback($item$save);
  5.                     if ($save) {
  6.                         if ($setMetadata) {
  7.                             $setMetadata($item);
  8.                         }
  1.             }
  2.             try {
  3.                 $value = ($this->callbackWrapper)($callback$item$save$pool, function (CacheItem $item) use ($setMetadata$startTime, &$metadata) {
  4.                     $setMetadata($item$startTime$metadata);
  5.                 }, $this->logger ?? null);
  6.                 $setMetadata($item$startTime$metadata);
  7.                 return $value;
  8.             } finally {
  9.                 unset($this->computing[$key]);
in vendor/symfony/cache-contracts/CacheTrait.php -> Symfony\Component\Cache\Traits\{closure} (line 72)
  1.             }
  2.         }
  3.         if ($recompute) {
  4.             $save true;
  5.             $item->set($callback($item$save));
  6.             if ($save) {
  7.                 $pool->save($item);
  8.             }
  9.         }
  1.                 return $value;
  2.             } finally {
  3.                 unset($this->computing[$key]);
  4.             }
  5.         }, $beta$metadata$this->logger ?? null);
  6.     }
  7. }
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function get(string $key, callable $callbackfloat $beta null, array &$metadata null)
  5.     {
  6.         return $this->doGet($this$key$callback$beta$metadata);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             return $callback($item$save);
  2.         };
  3.         $event $this->start(__FUNCTION__);
  4.         try {
  5.             $value $this->pool->get($key$callback$beta$metadata);
  6.             $event->result[$key] = get_debug_type($value);
  7.         } finally {
  8.             $event->end microtime(true);
  9.         }
  10.         if ($isHit) {
TraceableAdapter->get('blog_authors', object(Closure), INF) in src/Blog.php (line 149)
  1.     public function getAuthors(bool $bustCache false): array
  2.     {
  3.         if (!isset($this->authors)) {
  4.             $beta $bustCache INF null;
  5.             $this->authors $this->cache->get('blog_authors', function (ItemInterface $item) {
  6.                 $item->expiresAfter(86400); // cache for 1 day
  7.                 return $this->loadBlogAuthors();
  8.             }, $beta);
  9.         }
Blog->getAuthors(true) in src/Blog.php (line 37)
  1.      * WARNING: This will be slow and should not be called
  2.      * unless intentional.
  3.      */
  4.     public function bustCache(): void
  5.     {
  6.         $this->getAuthors(true);
  7.         $this->getTags(true);
  8.         $this->getAllPosts(true);
  9.     }
  10.     public function getAuthor(string $slug): ?array
  1.         // Update the last refresh time now to minimize cache stampede
  2.         $this->cache->get('lastContentRefresh', function () {
  3.             return time();
  4.         }, INF);
  5.         $this->blog->bustCache();
  6.     }
  7.     public static function getSubscribedEvents(): array
  8.     {
  9.         return [
ContentRefreshSubscriber->refresh() in src/EventSubscriber/ContentRefreshSubscriber.php (line 34)
  1.         $lastRefresh $this->cache->get('lastContentRefresh', function () {
  2.             return 0;
  3.         });
  4.         if ($lastRefresh strtotime('-5 minutes')) {
  5.             $this->refresh();
  6.         }
  7.     }
  8.     private function refresh(): void
  9.     {
  1.                     $closure = static function (...$args) use (&$listener, &$closure) {
  2.                         if ($listener[0] instanceof \Closure) {
  3.                             $listener[0] = $listener[0]();
  4.                             $listener[1] = $listener[1] ?? '__invoke';
  5.                         }
  6.                         ($closure \Closure::fromCallable($listener))(...$args);
  7.                     };
  8.                 } else {
  9.                     $closure $listener instanceof \Closure || $listener instanceof WrappedListener $listener \Closure::fromCallable($listener);
  10.                 }
  11.             }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 230)
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function terminate(Request $requestResponse $response)
  5.     {
  6.         $this->dispatcher->dispatch(new TerminateEvent($this$request$response), KernelEvents::TERMINATE);
  7.     }
  8.     /**
  9.      * @internal
  10.      */
in vendor/symfony/http-kernel/Kernel.php -> terminate (line 159)
  1.         if (false === $this->booted) {
  2.             return;
  3.         }
  4.         if ($this->getHttpKernel() instanceof TerminableInterface) {
  5.             $this->getHttpKernel()->terminate($request$response);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritdoc}
Kernel->terminate(object(Request), object(Response)) in public/index.php (line 36)
  1. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  2. $request Request::createFromGlobals();
  3. $response $kernel->handle($request);
  4. $response->send();
  5. $kernel->terminate($request$response);

Logs 3

Level Channel Message
INFO 09:44:49 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
{
    "exception": {}
}
INFO 09:44:49 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead.
{
    "exception": {}
}
INFO 09:44:49 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "c39686"
    },
    "request_uri": "http://invoiced.project-release.info/_profiler/c39686?panel=http_client",
    "method": "GET"
}
INFO 09:44:49 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead.
{
    "exception": {}
}
INFO 09:44:49 cache Lock acquired, now computing item "lastContentRefresh"
{
    "key": "lastContentRefresh"
}
INFO 09:44:49 cache Lock acquired, now computing item "blog_authors"
{
    "key": "blog_authors"
}
INFO 09:44:49 http_client Request: "GET https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"
INFO 09:44:49 http_client Response: "401 https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"
ERROR 09:44:49 app Could not load blog posts from HubSpot
{
    "exception": {}
}
CRITICAL 09:44:49 php Uncaught Exception: HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".
{
    "exception": {}
}
CRITICAL 09:44:49 request Uncaught PHP Exception Symfony\Component\HttpClient\Exception\ClientException: "HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"." at /var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-client/Response/TraceableResponse.php line 212
{
    "exception": {}
}

Stack Trace

ClientException
Symfony\Component\HttpClient\Exception\ClientException:
HTTP/2 401  returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".

  at vendor/symfony/http-client/Response/TraceableResponse.php:212
  at Symfony\Component\HttpClient\Response\TraceableResponse->checkStatusCode(401)
     (vendor/symfony/http-client/Response/TraceableResponse.php:103)
  at Symfony\Component\HttpClient\Response\TraceableResponse->getContent()
     (src/Blog.php:181)
  at App\Blog->loadBlogAuthors()
     (src/Blog.php:152)
  at App\Blog->App\{closure}(object(CacheItem), true)
     (vendor/symfony/cache/Adapter/TraceableAdapter.php:51)
  at Symfony\Component\Cache\Adapter\TraceableAdapter->Symfony\Component\Cache\Adapter\{closure}(object(CacheItem), true)
     (vendor/symfony/cache/LockRegistry.php:108)
  at Symfony\Component\Cache\LockRegistry::compute(object(Closure), object(CacheItem), true, object(FilesystemAdapter), object(Closure), object(Logger))
     (vendor/symfony/cache/Traits/ContractsTrait.php:100)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->Symfony\Component\Cache\Traits\{closure}(object(CacheItem), true)
     (vendor/symfony/cache-contracts/CacheTrait.php:72)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->contractsGet(object(FilesystemAdapter), 'blog_authors', object(Closure), INF, array(), object(Logger))
     (vendor/symfony/cache/Traits/ContractsTrait.php:107)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->doGet(object(FilesystemAdapter), 'blog_authors', object(Closure), INF, array())
     (vendor/symfony/cache-contracts/CacheTrait.php:35)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->get('blog_authors', object(Closure), INF, array())
     (vendor/symfony/cache/Adapter/TraceableAdapter.php:56)
  at Symfony\Component\Cache\Adapter\TraceableAdapter->get('blog_authors', object(Closure), INF)
     (src/Blog.php:149)
  at App\Blog->getAuthors(true)
     (src/Blog.php:37)
  at App\Blog->bustCache()
     (src/EventSubscriber/ContentRefreshSubscriber.php:45)
  at App\EventSubscriber\ContentRefreshSubscriber->refresh()
     (src/EventSubscriber/ContentRefreshSubscriber.php:34)
  at App\EventSubscriber\ContentRefreshSubscriber->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:270)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure)), 'kernel.terminate', object(TerminateEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (vendor/symfony/http-kernel/HttpKernel.php:94)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(Response))
     (vendor/symfony/http-kernel/Kernel.php:159)
  at Symfony\Component\HttpKernel\Kernel->terminate(object(Request), object(Response))
     (public/index.php:36)