AWS create bucket returns error statust code 400 IllegalLocationConstraintException #2695
-
status code 400 IllegalLocationConstraintException The unspecified location constraint is incompatible for the region specific endpoint this request was sent to. Using SDK PHP I am setting the LocationConstraint
My account is setup for eu-west-2. I am able to retrieve from an existing bucket setup through the console using this location. The more I look at the logs it appears to me that while my code appears to be setting the LocationConstration I do not believe it is being sent in the request. However I cannot figure out what I am doing wrong or perhaps is it possible this is an issue with the SDK and my code is correct I have tested with known duplicated bucket name and unique names and received the same error. I have also tried without setting location constraint. I have verified through the amazon console I can create a bucket there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @mordechaihorowitz, this has been answered on this comment. I wan to add that, if the LocationConstraint parameter is not present, in your request/response, is because you are using an old SDK version, and this can not be fixed unless you upgrade. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @mordechaihorowitz, this has been answered on this comment. I wan to add that, if the LocationConstraint parameter is not present, in your request/response, is because you are using an old SDK version, and this can not be fixed unless you upgrade.
Thanks!