Getting "botocore.exceptions.EndpointConnectionError" on lambda client using boto

0

I have a lambda function which invokes another lambda function using boto and it used to work. suddenly it started giving connection error. Below is the code of invocation-

lambda_client = s.create_client('lambda',
                                config=Config(connect_timeout=5, read_timeout=900, retries={'max_attempts': 2}))

def some_func(payload):
    response = lambda_client.invoke(
        FunctionName=os.environ['another_func'],
        InvocationType='RequestResponse',
        Payload=json.dumps(payload)
    )
    return response

it gives error - botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://lambda.us-west-1.amazonaws.com/2015-03-31/functions/arn%3Aaws%3Alambda%3Aus-west-1%3A{account_id}%3Afunction%3Afunc_name/invocations"

  • Are they in the same region? Are they both available?

已提问 1 年前54 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则