rzrbld / adminio-api

simple admin API for min.io (minio) s3 server
MIT License
23 stars 8 forks source link

Failed to parse server response: invalid character 'C' looking for beginning of value. #14

Closed FlaviuRadulescu closed 4 years ago

FlaviuRadulescu commented 4 years ago

Hello,

I have an instalation of minio on 443 with a bucket.subdomain.domain.tld and when I am trying to start the adminio-api, I get the error:

{"error":"Failed to parse server response: invalid character 'C' looking for beginning of value."}

Can you please help me investigate what is the problem?

Thank you, F

rzrbld commented 4 years ago

Hi, can you please provide how you run it?

do you specify all environment variables? please note - you need an admin login and password to run adminio, not just any bucket key and secret.

nicolaiort commented 4 years ago

Hey, i have similar problem: When trying to access any endpoint is get the message in the console and the api response:

Failed to parse server response: invalid character '<' looking for beginning of value.

Behavior of all pages in adminio-ui:

About my setup:

My docker-compose.yml (slightly censored)

version: '3'
services:
  adminio:
    image: rzrbld/adminio-ui:latest
    environment:
      API_BASE_URL: "http://localhost:8080"
      ADMINIO_MULTI_BACKEND: "false"
      NGX_ROOT_PATH: "/"
    ports:
      - "80:80"
  api:
    image: rzrbld/adminio-api:latest
    environment:
      MINIO_ACCESS: workingAdminAccess
      MINIO_SECRET: mySecretSecret
      MINIO_HOST_PORT: s3.my.domain
      ADMINIO_HOST_PORT: 0.0.0.0:8080
      MINIO_SSL: "true"
    ports:
      - "8080:8080"

Im happy to provide more information, if you need it. And thanks for developing this project, been looking for something like this :)

rzrbld commented 4 years ago

@Niggl1999 hi, thanks)

actually minio team build up their own web ui - https://github.com/minio/console

nicolaiort commented 4 years ago

The console project by minio themselves looks promising, but I'm still interested in running at least adminio-api in my test environment, i like it's simplicity and RESTfull approach.

rzrbld commented 4 years ago

@Niggl1999 thanks, i just checked and seems that version is not supported, i try to fix that in the next one - two days

rzrbld commented 4 years ago

@Niggl1999 since version of minio that you have is too old, modern minio libs don't support it. so you have two ways to solve that:

nicolaiort commented 4 years ago

Thank you very much, then i'll give it another go in 1-2 weeks :)