Skip to content

HMD_MINIO_PORT must be converted to Number Type #763

@vazontang

Description

@vazontang

I found a bug when I was using Minio.
If a variable which is passed from environment will be String type .
But the port in Constructor of Minio client only accepts Number type .

image


If Port is String type , there will be an error and cause image uploading failed.

hmd_bug


  • As a result, please convert port of Minio into number type in /lib/config/environment.js .
 minio: {
    accessKey: process.env.HMD_MINIO_ACCESS_KEY,
    secretKey: process.env.HMD_MINIO_SECRET_KEY,
    endPoint: process.env.HMD_MINIO_ENDPOINT,
    secure: toBooleanConfig(process.env.HMD_MINIO_SECURE),
    port: parseInt(process.env.HMD_MINIO_PORT)
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions