{"record":{"id":"e4a14c62f7888462","repo":"phacility/phabricator","slug":"unable-to-handle-proxied-service-request-this-dev","errorCode":null,"errorMessage":"Unable to handle proxied service request. This device is not registered, so it can not identify local services. Register this device before sending requests here.","messagePattern":"Unable to handle proxied service request\\. This device is not registered, so it can not identify local services\\. Register this device before sending requests here\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/repository/storage/PhabricatorRepository.php","lineNumber":1893,"sourceCode":"      return array();\n    }\n\n    $cache = PhabricatorCaches::getMutableStructureCache();\n    $uris = $cache->getKey($cache_key, false);\n\n    // If we haven't built the cache yet, build it now.\n    if ($uris === false) {\n      $uris = $this->buildAlmanacServiceURIs();\n      $cache->setKey($cache_key, $uris);\n    }\n\n    if ($uris === null) {\n      return array();\n    }\n\n    $local_device = AlmanacKeys::getDeviceID();\n    if ($never_proxy && !$local_device) {\n      throw new Exception(\n        pht(\n          'Unable to handle proxied service request. This device is not '.\n          'registered, so it can not identify local services. Register '.\n          'this device before sending requests here.'));\n    }\n\n    $protocol_map = array_fuse($protocols);\n\n    $results = array();\n    foreach ($uris as $uri) {\n      // If we're never proxying this and it's locally satisfiable, return\n      // `null` to tell the caller to handle it locally. If we're allowed to\n      // proxy, we skip this check and may proxy the request to ourselves.\n      // (That proxied request will end up here with proxying forbidden,\n      // return `null`, and then the request will actually run.)\n\n      if ($local_device && $never_proxy) {\n        if ($uri['device'] == $local_device) {","sourceCodeStart":1875,"sourceCodeEnd":1911,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/storage/PhabricatorRepository.php#L1875-L1911","documentation":"Error \"Unable to handle proxied service request. This device is not registered, so it can not identify local services. Register this device before sending requests here.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/repository/storage/PhabricatorRepository.php:1893 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}