XDMP-INVZIP:尝试获取 excel 文件时压缩文件无效

XDMP-INVZIP: Invalid zip file while trying to get an excel file

我正在尝试从 marklogic 访问 excel 文件。当我尝试获取清单时,出现无效的 zip 文件错误。

const fileName = "https://www.cisco.com/c/dam/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center/1-3/supported/devices/DNA1_3-Supported-Devices-List.xlsx";
var response = xdmp.httpGet(fileName, { "verifyCert": false, "encoding": "auto" }).toArray();
var excelFile = response[1];
xdmp.zipManifest(excelFile);

错误:

XDMP-INVZIP: >xdmp.zipManifest(Document(BinaryNode("e4ad90d0831406080021e5a29ee89dabc6ac00dc9f0013c888e48d9be6b9afe6..."))) -- Invalid zip file

我认为编码选项是罪魁祸首。如果我删除编码选项,这对我有用:

{ "verifyCert": false }

或将编码设置为UTF-8:

{ "verifyCert": false, "encoding": "UTF-8"}