KeyError: 'endpoint_resolver'
See original GitHub issueHi,
I sometimes get that error trying to call a lambda function boto3==1.3.1
def lambda_execute(payload):
import boto3
client = boto3.client('lambda', aws_access_key_id=KEY, aws_secret_access_key=SECRET region_name=REGION)
client.invoke(**payload)
payload is in this format:
{'FunctionName': fct, 'InvocationType': 'Event', 'LogType': 'None', 'Payload': simplejson.dumps(payload, default=encode_model)}
error seems to be coming from get_component in botocore/session.py
Can you help ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:16
- Comments:30 (3 by maintainers)
Top Results From Across the Web
Why do I sometimes get Key Error using SQS client
I am using boto3 SQS client to receive messages from AWS SQS FIFO queue. def consume_msgs(): sqs = None try: sqs = boto3.client(...
Read more >botocore.session — Runway v2.6.3
... from botocore.regions import EndpointResolver from botocore.utils import ... _deferred[name] except KeyError: pass def lazy_register_component(self, ...
Read more >Developers - KeyError: 'endpoint_resolver' - - Bountysource
Hi,. I sometimes get that error trying to call a lambda function boto3==1.3.1 def lambda_execute(payload): import boto3 client ...
Read more >s3 - Go Packages
func WithEndpointResolver(v EndpointResolver) func(*Options) ... on the bucket, Amazon S3 will return an HTTP status code 404 ("no such key") error.
Read more >pytest_localstack.contrib.botocore - pytest-localstack
__dict__["_internal_components"] except KeyError: raise ... EndpointResolver): """Resolve AWS service endpoints based on a LocalstackSession.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi James, Yes it is - weird it hasn’t been raised before. would you recommend this as a solution? https://geekpete.com/blog/multithreading-boto3/
I changed s3 = boto3.resource(‘s3’) to below and it work for me