minio-js
minio-js copied to clipboard
uploadPart-Cannot read properties of undefined (reading 'ETag')
minio/minio:RELEASE.2025-04-22T22-12-26Z-cpuv1 "minio": "8.0.5"
Using the uploadPart method yields an error, your way of accepting return values should be outdated!
const res = await this.makeRequestAsync(requestOptions, payload); const body = await (0, _response.readAsString)(res); const partRes = (0, xmlParsers.uploadPartParser)(body); return { etag: (0, _helper.sanitizeETag)(partRes.ETag), key: objectName, part: partNumber }; => try { const res = await this.makeRequestAsync(requestOptions, payload); // console.log("uploadPart,res", res.rawHeaders) const body = await (0, _response.readAsString)(res); // const partRes = (0, xmlParsers.uploadPartParser)(body); return { etag: (0, _helper.sanitizeETag)(res.rawHeaders[5]), key: objectName, part: partNumber }; } catch (error) { console.log("uploadPart,error", error) throw error; }
This is fixed in the master. Please wait for a new release.
same issues when you release a next version
same issues for me. Hope next version release soon
I have forked and publish as temporary to fix this. Can take a look at https://www.npmjs.com/package/erik-minio
This is fixed in the master. Please wait for a new release.
Awaiting the fix… When will the new version be released?
Please release the fix
The release has been done
Hi,
minio version 8.0.6
The problem doesn't seem to have been solved.