department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

[CMS-STAGING] Post API: attempted to add an item with NID <em class="placeholder">51881</em> to queue, but it h... #11914

Open vsp-sentry10-github[bot] opened 1 year ago

vsp-sentry10-github[bot] commented 1 year ago

Sentry Issue: PLATFORM-CMS-DRUPAL-40T

Stacktrace (most recent call first):

  File "/modules/contrib/monolog/src/Logger/Handler/DrupalHandler.php", line 78, in Drupal\monolog\Logger\Handler\DrupalHandler::write
    $this->logger->log($level, $record['drupal_message'] ?? $record['message'], $context);
  File "/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php", line 48, in Monolog\Handler\AbstractProcessingHandler::handle
    $this->write($record);
  File "/vendor/monolog/monolog/src/Monolog/Logger.php", line 379, in Monolog\Logger::addRecord
    if (true === $handler->handle($record)) {
  File "/vendor/monolog/monolog/src/Monolog/Logger.php", line 626, in Monolog\Logger::error
    $this->addRecord(static::ERROR, (string) $message, $context);
  File "/modules/custom/va_gov_post_api/src/Service/PostFacilityStatus.php", line 105, in Drupal\va_gov_post_api\Service\PostFacilityStatus::queueFacilityStatus
    $this->loggerChannelFactory->get('va_gov_post_api')->error($message);
  File "/modules/custom/va_gov_post_api/va_gov_post_api.module", line 49, in _post_api_add_facility_status_to_queue
    return Drupal::service('va_gov_post_api.queue_facility_status_updates')->queueFacilityStatus($entity);
  File "/modules/custom/va_gov_post_api/va_gov_post_api.module", line 16, in post_api_entity_insert
    _post_api_add_facility_status_to_queue($entity);
  File "/core/lib/Drupal/Core/Extension/ModuleHandler.php", line 426, in Drupal\Core\Extension\ModuleHandler::Drupal\Core\Extension\{closure}
    $result = call_user_func_array($hook, $args);
  File "/core/lib/Drupal/Core/Extension/ModuleHandler.php", line 405, in Drupal\Core\Extension\ModuleHandler::invokeAllWith
    $callback($hookInvoker, $module);
  File "/core/lib/Drupal/Core/Extension/ModuleHandler.php", line 433, in Drupal\Core\Extension\ModuleHandler::invokeAll
    });
...
(46 additional frame(s) were not displayed)

Post API: attempted to add an item with NID <em class="placeholder">51881</em> to queue, but it had no Facility API ID. [dd.trace_id=6180306515929145918 dd.span_id=6180306515929145918]
ElijahLynn commented 1 year ago

Seeing this item a fair bit in the STAGING logs during test runs.

image