Page MenuHomePhabricator

DomainException: Attempting to iterate an object which is not iterable
Open, Stalled, LowPublicBUG REPORT

Description

Low impact, still filing it for the records, triggered by somehow accessing /api/feed.query. Only slightly related ticket/commit I could find in upstream (but totally different codepath) is https://we.phorge.it/rP7f6508af5a3d79ddcc7c6e97864794f657315233 / https://secure.phabricator.com/T8599.
See also https://we.phorge.it/rARC7570dd0da119627ff83bc6db3be06b51eb5b366b.

[2024-08-22 17:10:45] EXCEPTION: (DomainException) Attempting to iterate an object (of class PHUIBoxView) which is not iterable. at [<arcanist>/src/object/Phobject.php:62]
arcanist(), ava(), phorge(), translations(), wmf-ext-misc()
  #0 <#2> Phobject::throwOnAttemptedIteration() called at [<arcanist>/src/object/Phobject.php:53]
  #1 <#2> Phobject::rewind() called at [<arcanist>/src/parser/PhutilJSON.php:63]
  #2 <#2> PhutilJSON::encodeFormattedObject(PHUIBoxView, integer) called at [<arcanist>/src/parser/PhutilJSON.php:131]
  #3 <#2> PhutilJSON::encodeFormattedValue(PHUIBoxView, integer) called at [<arcanist>/src/parser/PhutilJSON.php:67]
  #4 <#2> PhutilJSON::encodeFormattedObject(array, integer) called at [<arcanist>/src/parser/PhutilJSON.php:23]
  #5 <#2> PhutilJSON::encodeFormatted(array) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:616]
  #6 <#2> PhabricatorConduitAPIController::renderAPIValue(array) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:555]
  #7 <#2> PhabricatorConduitAPIController::buildHumanReadableResponse(string, ConduitAPIRequest, array, FeedQueryConduitAPIMethod) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:139]
  #8 <#2> PhabricatorConduitAPIController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #9 phlog(DomainException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #10 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, DomainException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #11 AphrontApplicationConfiguration::handleThrowable(DomainException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
  #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2024-08-22 08:49:21] EXCEPTION: (DomainException) Attempting to iterate an object (of class PhutilSafeHTML) which is not iterable. at [<arcanist>/src/object/Phobject.php:62]
arcanist(), ava(), phorge(), translations(), wmf-ext-misc()
  #0 <#2> Phobject::throwOnAttemptedIteration() called at [<arcanist>/src/object/Phobject.php:53]
  #1 <#2> Phobject::rewind() called at [<arcanist>/src/parser/PhutilJSON.php:63]
  #2 <#2> PhutilJSON::encodeFormattedObject(PhutilSafeHTML, integer) called at [<arcanist>/src/parser/PhutilJSON.php:131]
  #3 <#2> PhutilJSON::encodeFormattedObject(array, integer) called at [<arcanist>/src/parser/PhutilJSON.php:128]
  #4 <#2> PhutilJSON::encodeFormattedValue(array, integer) called at [<arcanist>/src/parser/PhutilJSON.php:67]
  #5 <#2> PhutilJSON::encodeFormattedObject(array, integer) called at [<arcanist>/src/parser/PhutilJSON.php:23]
  #6 <#2> PhutilJSON::encodeFormatted(array) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:616]
  #7 <#2> PhabricatorConduitAPIController::renderAPIValue(array) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:555]
  #8 <#2> PhabricatorConduitAPIController::buildHumanReadableResponse(string, ConduitAPIRequest, array, FeedQueryConduitAPIMethod) called at [<phorge>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:139]
  #9 <#2> PhabricatorConduitAPIController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #10 phlog(DomainException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #11 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, DomainException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #12 AphrontApplicationConfiguration::handleThrowable(DomainException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #13 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
  #14 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Event Timeline

Aklapper changed the task status from Open to Stalled.Tue, Dec 17, 2:25 PM
Aklapper triaged this task as Low priority.