Problem with plugin strapi-provider-upload-tp-minio

System Information
  • Strapi Version: 3.4.6
  • Operating System: Debian GNU/Linux 9 (stretch)
  • Database: mongo 4.1
  • Node Version: v12.18.2
  • NPM Version: 6.14.5
  • Yarn Version: 2.0.0-rc.32

Hi!

I have problem with connect strapi to MinIo.
After I init plugin strapi-provider-upload-tp-minio in my repo, i got error with code 500.

Plugin version [v3.0.0]
Plugin URL: GitHub - talentplatforms/strapi-provider-upload-tp-minio

Error trace:

[2021-02-09T12:51:28.269Z] error S3Error: Internal Server Error
at Object.parseError (/app/node_modules/minio/dist/main/xml-parsers.js:79:11)
at /app/node_modules/minio/dist/main/transformers.js:156:22
at DestroyableTransform._flush (/app/node_modules/minio/dist/main/transformers.js:80:10)
at DestroyableTransform.prefinish (/app/node_modules/minio/node_modules/readable-stream/lib/_stream_transform.js:129:10)
at DestroyableTransform.emit (events.js:315:20)
at prefinish (/app/node_modules/minio/node_modules/readable-stream/lib/_stream_writable.js:611:14)
at finishMaybe (/app/node_modules/minio/node_modules/readable-stream/lib/_stream_writable.js:620:5)
at endWritable (/app/node_modules/minio/node_modules/readable-stream/lib/_stream_writable.js:643:3)
at DestroyableTransform.Writable.end (/app/node_modules/minio/node_modules/readable-stream/lib/_stream_writable.js:571:22)
at IncomingMessage.onend (_stream_readable.js:682:10)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1221:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

[2021-02-09T12:51:28.269Z] debug POST /upload (848 ms) 500

My code for connect to minio with this plugin:

module.exports = ({ env }) => ({
upload: {
  provider: 'tp-minio',
  providerOptions: {
    accessKey: env('MINIO_ACCESS_KEY_ID'),
    secretKey: env('MINIO_SECRET_ACCESS_KEY'),
    bucket: 'help',
    endPoint: env('MINIO_ENDPOINT'),
    port: parseInt(env('MINIO_PORT'), 10),
    folder: 'cms',
    isDocker:true,
    useSSL:true,
   `host:env('MINIO_ENDPOINT')`
  },
},

});

My environment have all need variable.

MINIO_ENDPOINT=test-minio.ogbor.ru

MINIO_PORT=443
MINIO_ACCESS_KEY_ID=xxx
MINIO_SECRET_ACCESS_KEY=xxx

Can anybody help me?

PS

I found interesting fix in one of the old tags.

And I don’t understand why useSSL param is hardcoded.