**please guys help me out. I am receiving an error message anytime I run this code in my python compiler. I trying to send SMS from my PC to amazon-web-service then to the phone number I sent it to but I am always receiving an error message
HERE IS THE CODE I RUN IN MY COMPILER:
import boto3
client = boto3.client('sns', 'eu-west-1')
client.publish(PhoneNumber='08096543566',Message='hi from Zedd, your friend')
AND HERE IS THE ERROR I RECIEVED:
Traceback (most recent call last):
File "C:\Users\hp\Desktop\FREE SMS.py", line 3, in <module>
client.publish(PhoneNumber='08096543566',Message='hi from Zedd, your friend')
File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\site-packages\botocore\client.py", line 320, in _api_call
return self._make_api_call(operation_name, kwargs)
File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\site-packages\botocore\client.py", line 624, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the Publish operation: Signature not yet current: 20181224T023434Z is still later than 20181224T014938Z (20181224T013438Z + 15 min.)
PLS SOMEONE HELP ME OUT QUICK. **
Comments
Post a Comment