{"record":{"id":"7d68f9c1b50a4ead","repo":"ruby/rubygems","slug":"e-message-7d68f9","errorCode":null,"errorMessage":"#{e.message}","messagePattern":"#\\{e\\.message\\}","errorType":"exception","errorClass":"Gem::Package::FormatError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/package.rb","lineNumber":637,"sourceCode":"    @gem.with_read_io do |io|\n      Gem::Package::TarReader.new io do |reader|\n        read_checksums reader\n\n        verify_files reader\n      end\n    end\n\n    verify_checksums @digests, @checksums\n\n    @security_policy&.verify_signatures @spec, @digests, @signatures\n\n    true\n  rescue Gem::Security::Exception\n    @spec = nil\n    @files = []\n    raise\n  rescue Errno::ENOENT => e\n    raise Gem::Package::FormatError.new e.message\n  rescue Zlib::GzipFile::Error, EOFError, Gem::Package::TarInvalidError => e\n    raise Gem::Package::FormatError.new e.message, @gem\n  end\n\n  private\n\n  ##\n  # Returns the full path for installing +filename+ into +destination_dir+,\n  # which must already be resolved with File.realpath by the caller.\n  #\n  # If +filename+ is not inside +destination_dir+ an exception is raised.\n\n  def install_location(filename, destination_dir) # :nodoc:\n    raise Gem::Package::PathError.new(filename, destination_dir) if\n      filename.start_with? \"/\"\n\n    destination = File.expand_path(filename, destination_dir)\n","sourceCodeStart":619,"sourceCodeEnd":655,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/package.rb#L619-L655","documentation":"Error \"#{e.message}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/package.rb:637 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-download the gem file; it could not be read","If you built the gem, rebuild it with `gem build foo.gemspec`"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}