I think that in your script, `const unzippedBlob = Utilities.ungzip(zippedBlob)` is required to be modified. The argument of
`Utilities.ungzip()` is Blob. But in your script, `zippedBlob` is the byte array. By this, such error occurs. In order to avoid this issue, how about the following modified script?
function testGzip() {
const sampleJSON = '[{"id":"117844470217365366262","name":"Alec Lambert"},{"id":"115506690682157649790","name":"Alex Wilder"}]'
const textBlob = Utilities.newBlob(sampleJSON)
const zipBlob = Utilities.gzip(textBlob)
const b64enc = Utilities.base64Encode(zipBlob.getBytes())
console.log({ b64enc })
const zippedBlob = Utilities.base64Decode(b64enc)
console.log({ zippedBlob })
const unzippedBlob = Utilities.ungzip(Utilities.newBlob(zippedBlob, zipBlob.getContentType()));
console.log(unzippedBlob.getDataAsString())
}
In this modification, I used the mimeType from `zipBlob.getContentType()`. But `application/x-gzip` can also be directly used.