-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Image upload failed - Amazon returned Http Code: 307 #3024
Comments
@Baskerville42 What region is your S3 server in, and have you set |
@Baskerville42 That looks exactly like the error I had when I didn't have my region set.
where |
@jstockwin Oh, I missing this config (I mean S3_REGION) but it's not help =(
|
And you've restarted your keystone app and that still hasn't helped? |
Yeah, after restarted it's not helped =( |
I don't see You want to look at the S3 Endpoint column, but remove the preceding |
I take from here http://docs.aws.amazon.com/general/latest/gr/rande.html |
Hmm. See here http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region There's a comment over at #1267 suggests that we only support version 2, which is probably the problem... Not sure why though... @keystonejs/core-devs ? |
Change region to eu-west-1 and it's not helped too =( |
Ah, we're waiting for knox to support version 4. See Automattic/knox#254 Changing region isn't that simple though? You'll also have to make a new bucket in the correct region on S3, you can't just change the keystone config option. |
I created NEW bucket in eu-west-1 (Ireland) and it's not help me =( |
I can get access to my DO droplet, his created for test only. |
And you've changed the |
Yeah |
And is it exactly the same problem? With the 307 error? You've restarted the server etc etc. Not really sure what else to suggest here. It's working for me locally. Are you on Keystone 0.3 from npm, or 0.4 from current master? |
I restarted app all time =)
.env
|
I assume If it's not that, then I'm afraid I'm stumped. If you only just created the bucket, sometimes it takes a while. Particularly if there used to be a bucket with the same name (if you deleted the one in eu-central and then created it again in eu-west, or just moved it if that's a thing). Maybe give it an hour or two then try again... |
Ok. I'll wait for a while. Thanks! |
Hmm, I don't use the s3 field so I don't really have any clue what's going on here except everything that @jstockwin mentioned… 😕 |
Strange. 400 means bad request IIRC, but it's odd that it was giving you 307 earlier and now a 400. Debugging depends on what you're using. I don't think there's a "debug mode" in keystone exactly, but if you add |
I solved a problem, thanks for help! =) |
@Baskerville42: Out of interest, what was the problem? |
I not understand. All steps I make on digital ocean server. Then I try generate project on my Mac. And all was done. |
hi, i'm trying to upload images to amazon s3 using keystonejs, but i'm facing issues |
any update ? same 400 here |
yes, the issue is resolved. bucket which you created in AWS s3 must be created with US region... |
I configured S3 and when I try upload image I get this
My AWS S3 credential all right 'cause I can upload files by using aws-cli
Thanks!
The text was updated successfully, but these errors were encountered: