{"record":{"id":"d345906a92106eb8","repo":"phacility/phabricator","slug":"encountered-git-protocol-frame-with-unexpected-fra","errorCode":null,"errorMessage":"Encountered Git protocol frame with unexpected frame length (%s)!","messagePattern":"Encountered Git protocol frame with unexpected frame length \\((.+?)\\)!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/protocol/DiffusionGitUploadPackWireProtocol.php","lineNumber":58,"sourceCode":"                    $bytes));\n              }\n            }\n\n            // We can't make any more progress until we get enough bytes, so\n            // we're done with state processing.\n            break 2;\n          }\n\n          $frame_length = $this->readBytes(4);\n          $frame_length = hexdec($frame_length);\n\n          // Note that the frame length includes the 4 header bytes, so we\n          // usually expect a length of 5 or larger. Frames with length 0\n          // are boundaries.\n          if ($frame_length === 0) {\n            $this->readFrames[] = $this->newProtocolFrame('null', '');\n          } else if ($frame_length >= 1 && $frame_length <= 3) {\n            throw new Exception(\n              pht(\n                'Encountered Git protocol frame with unexpected frame '.\n                'length (%s)!',\n                $frame_length));\n          } else {\n            $this->readFrameLength = $frame_length - 4;\n            $this->readMode = 'frame';\n          }\n\n          break;\n        case 'frame':\n          // We're expecting a protocol frame of a specified length. Note that\n          // it is possible for a frame to have length 0.\n\n          // We don't have enough bytes yet, so wait for more.\n          if ($len < $this->readFrameLength) {\n            break 2;\n          }","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/protocol/DiffusionGitUploadPackWireProtocol.php#L40-L76","documentation":"Error \"Encountered Git protocol frame with unexpected frame length (%s)!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/protocol/DiffusionGitUploadPackWireProtocol.php:58 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"}