-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] ConnectionTimeOut: Connect timeout on endpoint URL: while trying to upload .txt file from aws lambda to s3 #2611
Comments
Kindly provide some suggestions |
@annu2612 - Thank you for your post. What is the connect_timeout value when you are getting the error ? Is it happening for each value ? |
What is the connect_timeout value when you are getting the error? Not Sure on how to check this, I am working on AWS lambda During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Connection details: |
|
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Facing the same issue, trying to create a CloudWatch Log export task through Lambda. Code:
Boto retries the connection 2 more times as specified in the config and finally returns ConnectTimeOutError Exception
This issue is intermittent thus difficult to debug. Please help. |
In my case issue got resolved by configuring VPC endpoints, VPC was configured as part of lambda. |
Can you provide more info ? steps ? |
Jay has sent you an email via Gmail confidential mode:
[image: Gmail logo]Re: [boto/boto3] [ERROR] ConnectionTimeOut: Connect timeout on endpoint URL: while trying to upload .txt file from aws lambda to s3 (#2611) <https://confidential-mail.google.com/msg/AMptQGClz_ThVwAHYpiE7DniboonbvqruoEXwd0T6Am3DWmQCpfyd2ukh4whvdOefBFaZwi-Tgqos8If39BS44ZtfqGrR69ZBHeY1im4UiGm-oKEMcWgqy-dGjgJ5hn2UXEdk7e13GfTY3S3n4fi-depxGlOMGYIRW4kM7WtssJ8Y-cAcJG1UZ8Cj0rD0ePH__NEUcIlRJAS_vglkRpYtrukXw==>
This message was sent on Aug 16, 2021 at 9:07:51 AM PDT
You can open it by clicking the link below. This link will only work for ***@***.***
View the email <https://confidential-mail.google.com/msg/AMptQGClz_ThVwAHYpiE7DniboonbvqruoEXwd0T6Am3DWmQCpfyd2ukh4whvdOefBFaZwi-Tgqos8If39BS44ZtfqGrR69ZBHeY1im4UiGm-oKEMcWgqy-dGjgJ5hn2UXEdk7e13GfTY3S3n4fi-depxGlOMGYIRW4kM7WtssJ8Y-cAcJG1UZ8Cj0rD0ePH__NEUcIlRJAS_vglkRpYtrukXw==>
Gmail confidential mode gives you more control over the messages you send. The sender may have chosen to set an expiration time, disable printing or forwarding, or track access to this message. Learn more <https://support.google.com/mail/answer/7674059>
Gmail: Email by Google
Use is subject to the Google Privacy Policy <https://myaccount.google.com/privacypolicy?hl=en>
Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA
You have received this message because someone sent you an email via Gmail confidential mode.
[image: Google logo]
|
Jay has sent you an email via Gmail confidential mode:
[image: Gmail logo]Re: [boto/boto3] [ERROR] ConnectionTimeOut: Connect timeout on endpoint URL: while trying to upload .txt file from aws lambda to s3 (#2611) <https://confidential-mail.google.com/msg/AMptQGBrSXBGu8RJaA3OYGVxtetf0tyh8-53tGlzsZENnIca8U4Hm8DSburs9rrkBb71vOYyD5h4cqXEb_TE_scygZ72tZiZam2oNCZpBkRfJpfkPKQDWFc4yk9E37J426CXdhnzSFVz8VjCxAK5nW5dkllIwlttGOSfOMkELcUNDn7TlCvAYxTldoo6dYKWEchH7cTe9WLGI3TiMsCsv5m3aw==>
This message was sent on Aug 16, 2021 at 9:10:47 AM PDT
You can open it by clicking the link below. This link will only work for ***@***.***
View the email <https://confidential-mail.google.com/msg/AMptQGBrSXBGu8RJaA3OYGVxtetf0tyh8-53tGlzsZENnIca8U4Hm8DSburs9rrkBb71vOYyD5h4cqXEb_TE_scygZ72tZiZam2oNCZpBkRfJpfkPKQDWFc4yk9E37J426CXdhnzSFVz8VjCxAK5nW5dkllIwlttGOSfOMkELcUNDn7TlCvAYxTldoo6dYKWEchH7cTe9WLGI3TiMsCsv5m3aw==>
Gmail confidential mode gives you more control over the messages you send. The sender may have chosen to set an expiration time, disable printing or forwarding, or track access to this message. Learn more <https://support.google.com/mail/answer/7674059>
Gmail: Email by Google
Use is subject to the Google Privacy Policy <https://myaccount.google.com/privacypolicy?hl=en>
Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA
You have received this message because someone sent you an email via Gmail confidential mode.
[image: Google logo]
|
Hello @jason-code78 can you share the info with me, I have a similar problem |
Hello @jason-code78 can you share the info with me, I have a similar problem, too. |
Hi @jason-code78 can you share the info with me as well? Thank you in advance! |
Hi @jason-code78 can you please share the info with me as well? Thank you :) |
Please fill out the sections below to help us address your issue.
What issue did you see ?
I am working on aws lambda which creates a txt file and uploads the same in S3 folder. The timeout issue occurs at random times stating: [ERROR] ConnectionTimeOut: Connect timeout on endpoint URL: "https://sample-demo.s3.amazonaws.com/site1/output/status/trigger.txt" where trigger.txt is the file I am trying to upload to s3 and site1/output/status/ is the folder structure.
At times the file gets uploaded successfully but fails at random times making it difficult to test and debug.
P.S: I am trying to upload multiple files but random failures are happening.
Options Tried:
Upgraded version of boto3 == 1.14.57 and tried uploading as dependency
Used aws lambda's default boto3 version which is 1.14.48
s3 = boto3.client('s3', config=botocore.config.Config(connect_timeout=0.15, retries={'max_attempts': 5}))
s3 = boto3.client('s3', config=botocore.config.Config(connect_timeout=100, read_timeout=100, retries={'max_attempts': 4}, s3={'addressing_style':'path'}))
s3 = boto3.client('s3', region_name="us-east-1", config=botocore.config.Config(s3={'addressing_style':'path'}))
None of the above solutions worked.
Is there any option which I am missing, or is there any rate-limiting set where we cant upload more than n times.
Any suggestions would be really helpful.
The text was updated successfully, but these errors were encountered: