By using AWS re:Post, you agree to the Terms of Use

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


where : botocore library in Lambda Python

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

currently domain :

change to domain:

problem word : esat -> east

exception trace info >

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

It's most likely there's a typo in your region configuration. Have a look at for the ways that boto3 picks up the configured region.

answered 23 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions