Comments (8)
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.
I have published an updated nuget package. Can you update and try again?
from minio-dotnet.
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.
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.
Which version of server are you using?
from minio-dotnet.
Minio server version is "2015-11-14T09:02:54Z", and I stepped into the code and get the error message as below. Any clue?
AuthorizationHeaderMalformed
The authorization header is malformed; the region is wrong; expecting 'milkyway'./3L1373L137
from minio-dotnet.
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.
Awesome! Works like a charm. Thank you very much.
from minio-dotnet.
Related Issues (20)
- ListObjectsAsync Sequence contains no elements
- Methods behave differently under Linux HOT 7
- Breaking changes in 6.0.3 for ListObjectsAsync HOT 4
- No not found exceptions are thrown while using SetObjectTagsAsync HOT 1
- BucketExistsAsync returns true even if it does not exist HOT 3
- Error handling is still broken with v6.0.3 HOT 8
- Upload and download use WithSSL()
- Latest version of `regitlint` raises a lot of errors HOT 1
- NullReferenceException thrown when using PutObjectAsync
- PutObjectAsync doesn't handle an 'Access Denied' specific case after upgrade to 6.0.3 HOT 2
- BucketExistsAsync seems to need a bit of refactoring HOT 1
- STS authentication doesn't seem to deal with slight time deviations
- ListBucketsAsync should throw exception when the server is not online or response.status is not ok HOT 2
- High memory usage for PutObjectAsync with Streams
- `ListenBucketNotificationAsync` Test1, Test2 and Test3` needs to be cleaned up.
- Ensure `ListenNotifications` not returning before it started listening
- copy deeply error CopyObjectAsync HOT 5
- Can you provide support for shard uploading? I found that Java Go libraries already support it. If possible, thank you very much
- Support for keyed services
- Content-Type header value is wrong in the presigned put url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minio-dotnet.