-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PermanentRedirect? #178
Comments
0.7.1 seems fine |
Is it for a bucket you just created? |
nope it's at least 8+ months old |
OK what does your constructor look like; a few options underwent minor changes e.g. |
this one is: var client = knox.createClient({
key: conf['s3 key'],
secret: conf['s3 secret'],
bucket: conf['s3 bucket']
}); |
Oh the bucket has periods in its name hmm it's probably trying to auto-switch you to path style, which should work but I guess isn't working :-/. You can force it back with |
Did that fix it? Now I'm unhappy that I broke backward compat, not sure how to best make this right. |
nope :( i just reverted to an older version for now 0.7.x |
Try 0.8.1, found something that probably fixed it in 2400475. |
still no luck :( |
I hate that this stuff isn't reproducible. If you're up for it, try doing |
im getting the following, not sure why it's saying i.cloudup.com for this one haha, that's not the right bucket, we do have others with that bucket though
|
Wait wtf, that shouldn't be possible, it uses Anyway I meant the request options inside |
i did notice that it merges right to the |
Hmm yeah maybe I shouldn't mess with the |
I've done similar in Express :D it's usually fine, I dont think that's the real problem here but that output vs |
0.8.3 no longer messes with passed |
@visionmedia, any chance the endpoint was in us-west-2 (oregon)? I'm seeing this issue as well and according to this, s3.amazonaws.com only works for us-east and us-west-1: I think that makes the knox docs incorrect. |
@psugihara seems to be correct. Buckets not in US Standard have to be access via |
I've got same problem with 301 REDIRECT reply while trying to upload file using Knox. I do: client.putFile('my.json', '/user.json', function(err, res){
// and res.statusCode is always 301 here...
}); My region for EC2 instances is Ireland, but it seems like S3 has no region set ("S3 does not requires region"). Can you please help me to fix the issue? |
UPDATE: Oh yes. Still my Ireland bucket does not work ((( Is that a bug? |
Yes. Unfortunately, knox does not automatically handle redirects to different endpoints. The solution is to set 'region' option to 'eu-west-1'. |
I chose dev bucket to be Ireland, so it's closer to me. Thanks guys for clearing this redirection out. Still on in 0.9.2 |
@AnthonyAkentiev When you say "The solution is to set 'region' option to 'eu-west-1'." Where should this be set ? I'm trying to do this on knox.createClient arguments but it does not work too |
@PedroSena, add region option like this:
|
Thanks, I tried that but didn't work, still getting the redirect error, I'm migrating my bucket to a US Standard |
@PedroSena, please tell us if it will help you. |
Yes, migrating the bucket to a US Standard one(was on Oregon before) worked, not the best path(had to migrate 30k files) but at least it is working now |
yo @domenic, updating from 0.5.x to 0.8.x and now im getting this for each request, I didn't notice anything that seemed related in the changelog, any idea?
The text was updated successfully, but these errors were encountered: