Error: ERR_SSL_PROTOCOL_ERROR- in minio in node.js

50 views Asked by At

I want to intract with minio client. In my react-app:


import * as minio from 'minio'

const MinioClient = () => {

  const minioClient = new minio.Client({
    endPoint: 'localhost',
    port: 9001,
    accessKey: 'minio99',
    secretKey: 'minio123',
  })


    minioClient.makeBucket('mynewbucket','us-east-1', function (err) {
      if (err) 
          return console.log(err)
      console.log('Bucket created successfully in "buckets".')
    })

  return <>
    HI!!
  </>
}

export default MinioClient;

The error that I get:

PUT https://localhost:9001/mynewbucket net::ERR_SSL_PROTOCOL_ERROR

I tried to change the endPoint to '127.0.0.1' Its not help. I'm also tried to create a new accessKey, its not work.

0

There are 0 answers