Skip to content
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

The sns service does not have version #1901

Closed
eegrab opened this issue Nov 18, 2019 · 1 comment
Closed

The sns service does not have version #1901

eegrab opened this issue Nov 18, 2019 · 1 comment
Labels
guidance Question that needs advice or information.

Comments

@eegrab
Copy link

eegrab commented Nov 18, 2019

I have receive this below error. i am using simple aws.zip file


Fatal error: Uncaught Aws\Exception\UnresolvedApiException: The sns service does not have version: 2012-10-17. in /var/www/clients/client0/web1/web/ihub/aws/Aws/Api/ApiProvider.php:85 Stack trace: #0 /var/www/clients/client0/web1/web/ihub/aws/Aws/ClientResolver.php(486): Aws\Api\ApiProvider::resolve(Object(Aws\Api\ApiProvider), 'api', 'sns', '2012-10-17') #1 /var/www/clients/client0/web1/web/ihub/aws/Aws/ClientResolver.php(314): Aws\ClientResolver::_apply_api_provider(Object(Aws\Api\ApiProvider), Array, Object(Aws\HandlerList)) #2 /var/www/clients/client0/web1/web/ihub/aws/Aws/AwsClient.php(187): Aws\ClientResolver->resolve(Array, Object(Aws\HandlerList)) #3 /var/www/clients/client0/web1/web/ihub/create_topic.php(45): Aws\AwsClient->__construct(Array) #4 {main} thrown in /var/www/clients/client0/web1/web/ihub/aws/Aws/Api/ApiProvider.php on line 85
@diehlaws diehlaws self-assigned this Nov 18, 2019
@diehlaws diehlaws added the guidance Question that needs advice or information. label Nov 18, 2019
@diehlaws
Copy link
Contributor

Hi @eegrab, thanks for reaching out to us. As the error suggests, the version string 2012-10-17 is not a valid API version for for SNS. Per our SnsClient documentation and the service's API reference the only API version currently available for this service is 2010-03-31.

In order to resolve this error you'll want to set 'version' => 'latest', or 'version' => '2010-03-31', in the SNS client's initialization parameters.

@diehlaws diehlaws added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 18, 2019
@diehlaws diehlaws removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 22, 2019
@diehlaws diehlaws removed their assignment Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants