-
Notifications
You must be signed in to change notification settings - Fork 1.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
verifyDomainDkim method of SES Client returns validation error #2880
Comments
Hi @onurkose, what I think that could be happening here is that for some reason your PHP SDK version is pinned to an older version where IdentityDomain was the expected parameter. The reason I think this is the issue is because in the current SDK version there is not a modeled parameter IdentityDomain for that operation, which we can confirm here in the input shape expected for this request. So there should not be a validation expecting that parameter, unless is an older version. There are different ways for confirming this:
Please make sure that when you do those tests you provided that parameter as 'Domain' and not 'domain'. I look forward to your response. Thanks! |
It's so strange.
But even when I check the v3.299.0 tag, it's defined as Deleting the lock file and composer update command fixed the issue. Thanks a lot. |
@onurkose, you are very welcome. I do not know either why you got that behavior, but I am glad it is resolved now. Please open a new issue for anything else that we can help you with. Thanks! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Documentation suggests using the method like this:
$result = $sesClient->verifyDomainDkim(['IdentityDomain' => 'example.com']);
Method's validation rule also expects
IdentityDomain
key to be exists.The endpoint returns this error:
ValidationError (client): 1 validation error detected: Value null at 'domain' failed to satisfy constraint: Member must not be null
Expected Behavior
Returns the expected response such as:
Current Behavior
This is ok with the SDK validation:
$result = $sesClient->verifyDomainDkim(['IdentityDomain' => 'example.com']);
If I try passing only domain (as the error suggests) key:
$result = $sesClient->verifyDomainDkim(['domain' => 'example.com']);
then it throws this exception:
I've also tried disabling SDK validation like this:
then it goes back to the beginning and returns the same error response:
ValidationError (client): 1 validation error detected: Value null at 'domain' failed to satisfy constraint: Member must not be null
Here are some logs from when debug mode was enabled:
Reproduction Steps
aws ses verify-domain-dkim --domain example.com --region us-east-1
DkimTokens
key.verifyDomainDkim
method.Possible Solution
No response
Additional Information/Context
In the meantime PHP SDK V2 and V3 documentation suggests using
Domain
as key when using this method.SDK version used
aws-sdk-php 3.299.0 | aws/aws-sdk-php-symfony 2.7.0
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2.9, MacOS 14.3.1, Env: Docker php:8.2-fpm-alpine
The text was updated successfully, but these errors were encountered: