How to read from a WebGLCubeRenderTarget?

When trying to get the pixel from a WebGLCubeRenderTarget it get this error.

Uncaught TypeError: Failed to execute 'bindFramebuffer' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLFramebuffer'."

renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.setAnimationLoop( animation );
document.body.appendChild( renderer.domElement );
renderer.setClearColor( 'white' )

camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.01, 100 );
camera.position.x = 30;
var controls = new OrbitControls(camera, renderer.domElement);
scene = new THREE.Scene();

var cubeRenderTarget = new THREE.WebGLCubeRenderTarget( 256 );
cubeRenderTarget.texture.type = THREE.HalfFloatType;
var cubeCamera = new THREE.CubeCamera( 1, 1000, cubeRenderTarget );


cubeCamera.update( renderer, scene );
var pixels = new Uint8Array(256 * 256 * 4);
renderer.readRenderTargetPixels(cubeRenderTarget, 0, 0, 256, 256, pixels);
console.log(pixels)

You need to define the activeCubeFaceIndex parameter to determine what cube face should be evaluated. E.g.:

renderer.readRenderTargetPixels(cubeRenderTarget, 0, 0, 256, 256, pixels, 0);