[bug report] SES service endpoint domain error in Lambda(python) botocore

0

where : botocore library in Lambda Python

what : SES(Simple Email Service) service endpoint domain error

currently domain : https://email.us-esat-1.amazonaws.com

change to domain: https://email.us-east-1.amazonaws.com

problem word : esat -> east

exception trace info >

Traceback (most recent call last):
  File "/var/task/lambda_function.py", line 132, in send_mail
    message_id = ses.send(title, body_html, recipient)
  File "/var/task/ses.py", line 54, in send
    response = client.send_email(
  File "/var/runtime/botocore/client.py", line 391, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 705, in _make_api_call
    http, parsed_response = self._make_request(
  File "/var/runtime/botocore/client.py", line 725, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/var/runtime/botocore/endpoint.py", line 104, in make_request
    return self._send_request(request_dict, operation_model)
  File "/var/runtime/botocore/endpoint.py", line 138, in _send_request
    while self._needs_retry(attempts, operation_model, request_dict,
  File "/var/runtime/botocore/endpoint.py", line 254, in _needs_retry
    responses = self._event_emitter.emit(
  File "/var/runtime/botocore/hooks.py", line 357, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/var/runtime/botocore/hooks.py", line 228, in emit
    return self._emit(event_name, kwargs)
  File "/var/runtime/botocore/hooks.py", line 211, in _emit
    response = handler(**kwargs)
  File "/var/runtime/botocore/retryhandler.py", line 183, in __call__
    if self._checker(attempts, response, caught_exception):
  File "/var/runtime/botocore/retryhandler.py", line 250, in __call__
    should_retry = self._should_retry(attempt_number, response,
  File "/var/runtime/botocore/retryhandler.py", line 277, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/var/runtime/botocore/retryhandler.py", line 316, in __call__
    checker_response = checker(attempt_number, response,
  File "/var/runtime/botocore/retryhandler.py", line 222, in __call__
    return self._check_caught_exception(
  File "/var/runtime/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "/var/runtime/botocore/endpoint.py", line 201, in _do_get_response
    http_response = self._send(request)
  File "/var/runtime/botocore/endpoint.py", line 270, in _send
    return self.http_session.send(request)
  File "/var/runtime/botocore/httpsession.py", line 438, in send
    raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://email.us-esat-1.amazonaws.com/"
gefragt vor 2 Jahren344 Aufrufe
1 Antwort
0

It's most likely there's a typo in your region configuration. Have a look at https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html for the ways that boto3 picks up the configured region.

EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen