Giter Club home page Giter Club logo

Comments (8)

harshavardhana avatar harshavardhana commented on August 28, 2024

time="2015-11-25T15:58:50+08:00" level=error msg="Unknown region in authorizatio
n header." Error={Invalid region *errors.errorString [{81 C:/mygo/src/github.com
/minio/minio/api-signature.go main.isValidRegion map[]} {89 C:/mygo/src/github.c
om/minio/minio/api-signature.go main.stripAccessKeyID map[]} {108 C:/mygo/src/gi
thub.com/minio/minio/api-signature.go main.initSignatureV4 map[]} {84 C:/mygo/sr
c/github.com/minio/minio/signature-handler.go main.signatureHandler.ServeHTTP ma
p[]}] map[host.os:windows host.arch:amd64 host.name:SHA2UA0151LHQ host.cpus:8 me
m.heap.total:3.0MB host.lang:go1.5.1 mem.used:2.2MB mem.total:6.1MB mem.heap.use
d:2.2MB]}

Recently minio server moved its region from default 'milkyway' to 'us-east-1' . Looks like you are using published dotnet package? I haven't published new changes yet which were done to this repo recently.

Can you clone this repo and try again?

from minio-dotnet.

harshavardhana avatar harshavardhana commented on August 28, 2024

I have published an updated nuget package. Can you update and try again?

from minio-dotnet.

philxia avatar philxia commented on August 28, 2024

Thanks for replying. I tried both this repo (sync to head) and nuget pckage (Successfully installed 'Minio 0.2.1' to Test), but still get the same error.

from minio-dotnet.

harshavardhana avatar harshavardhana commented on August 28, 2024

I tried both this repo (sync to head) and nuget pckage (Successfully installed 'Minio 0.2.1' to Test), but still get the same error.

@philxia - here is the snippet of the code that i tried with both master and nuget package with server https://github.com/minio/minio

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Minio;
using Minio.Xml;

namespace Minio.Examples
{
    class ListBuckets
    {
        static int Main(string[] args)
        {
            var client = new MinioClient("http://localhost:9000", "WLGDGYAQYIGI833EV05A", "BYvgJM101sHngl2uzjXS/OBF/aMxAN06JrJ3qJlF");

            var buckets = client.ListBuckets();
            foreach (Bucket bucket in buckets)
            {
                Console.Out.WriteLine(bucket.Name + " " + bucket.CreationDateDateTime);
            }

            return 0;
        }
    }
}
$ mono Minio.Examples/ListBuckets.exe
newbucket 11/23/2015 5:49:58 AM
testbucket 11/21/2015 5:39:18 PM

from minio-dotnet.

harshavardhana avatar harshavardhana commented on August 28, 2024

Which version of server are you using?

from minio-dotnet.

philxia avatar philxia commented on August 28, 2024

Minio server version is "2015-11-14T09:02:54Z", and I stepped into the code and get the error message as below. Any clue?

AuthorizationHeaderMalformedThe authorization header is malformed; the region is wrong; expecting 'milkyway'./3L1373L137

from minio-dotnet.

harshavardhana avatar harshavardhana commented on August 28, 2024

Minio server version is "2015-11-14T09:02:54Z", and I stepped into the code and get the error message as below. Any clue?

Now i know what the issue is, we recently changed server to use "us-east-1" instead of "milkyway" so the current version of the library is incompatible with the released binaries. Will be building new versions of the server soon.

You should use '0.2.0' version which should work properly. Here is how i tested locally.

$ mkdir newproj
$ cd newproj
$ mono nuget.exe install minio -Version 0.2.0
$ mcs /r:Minio.0.2.0/lib/net45/Minio.dll ListBuckets.cs
$ export MONO_PATH=Minio.0.2.0/lib/net45:RestSharp.105.1.0/lib/net45
$ mono ListBuckets.exe
newbucket 11/23/2015 5:49:58 AM
testbucket 11/21/2015 5:39:18 PM

Let me know if you see the same issue.

from minio-dotnet.

philxia avatar philxia commented on August 28, 2024

Awesome! Works like a charm. Thank you very much.

from minio-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.