minio-js icon indicating copy to clipboard operation
minio-js copied to clipboard

uploadPart-Cannot read properties of undefined (reading 'ETag')

Open HanWuJiJack opened this issue 7 months ago • 3 comments

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; }

HanWuJiJack avatar Apr 30 '25 07:04 HanWuJiJack

This is fixed in the master. Please wait for a new release.

prakashsvmx avatar Apr 30 '25 08:04 prakashsvmx

same issues when you release a next version

ksmk007 avatar May 06 '25 06:05 ksmk007

same issues for me. Hope next version release soon Image

I have forked and publish as temporary to fix this. Can take a look at https://www.npmjs.com/package/erik-minio

erikbuidt avatar May 07 '25 14:05 erikbuidt

This is fixed in the master. Please wait for a new release.

Awaiting the fix… When will the new version be released?

reedchan7 avatar Jul 23 '25 03:07 reedchan7

Please release the fix

troyanskiy avatar Sep 03 '25 14:09 troyanskiy

The release has been done

prakashsvmx avatar Sep 13 '25 02:09 prakashsvmx

Hi, minio version 8.0.6 Image The problem doesn't seem to have been solved.

roo7690 avatar Sep 17 '25 21:09 roo7690