Skip to content
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

AWS CLI network error while invoking a lambda after 2 or 3 min #8062

Closed
rbasina opened this issue Jul 24, 2023 · 8 comments
Closed

AWS CLI network error while invoking a lambda after 2 or 3 min #8062

rbasina opened this issue Jul 24, 2023 · 8 comments
Assignees
Labels
closed-for-staleness lambda response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@rbasina
Copy link

rbasina commented Jul 24, 2023

Describe the issue

while running below AWS CLI command and its invoking lambda to trigger EMR step. AWS cli getting network error after 3 min and its triggering lambda again. due to this we are not getting proper logs/response from aws cli.

aws lambda invoke --debug --cli-read-timeout 0 --cli-connect-timeout 0 --function-name autosys-job-execution-lambda --region us-east-1 --cli-binary-format raw-in-base64-out --payload "{"env":"UAT","profile":"hrcore","jobType":"conformed","process":"scalaclassprocess","mode": "ONETIME"}"

error message:

Network Error

A communication error occurred: ""

Additional Information/Context

No response

CLI version used

aws-cli2.1.3.0

Environment details (OS name and version, etc.)

Unix

@rbasina rbasina added needs-triage This issue or PR still needs to be triaged. source-distribution cli v2 source distritbution related issues labels Jul 24, 2023
@Charles-dot-code
Copy link

Verify that you have the latest version of the AWS CLI installed. The AWS CLI is updated frequently. You can’t access new released features when running an older CLI version.
Use the --debug option. [Enable and review the AWS CLI command history logs.
Confirm that your AWS CLI is configured.

@Charles-dot-code
Copy link

But from the error code received it looks like it's a Network error message so you can try this Tips

Check your network connectivity and ensure that you have an active internet connection.
Ensure that your AWS CLI credentials are correct and that you have permission to invoke the Lambda function.
Ensure that you have set the correct region for your Lambda function.

@tim-finnigan tim-finnigan self-assigned this Jul 25, 2023
@rbasina
Copy link
Author

rbasina commented Jul 25, 2023

Lambda is invoking the glue/EMR job and in the backend Lambda and gle/emr job completing successfully but the CLI is terminating with network error after 3 min

@rbasina
Copy link
Author

rbasina commented Jul 25, 2023

we are in US-EAST-1 region

@Charles-dot-code
Copy link

why do you ask?

@tim-finnigan
Copy link
Contributor

Hi @rbasina thanks for reaching out. We recommend updating to a more recent version of the CLI. The latest version is 2.13.3 per the CHANGELOG. If you're still seeing the issue please share your debug logs (with sensitive info redacted) by adding --debug to the command for us to investigate further.

@tim-finnigan tim-finnigan added lambda response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. source-distribution cli v2 source distritbution related issues labels Jul 25, 2023
@Charles-dot-code
Copy link

we are in US-EAST-1 region

Actually, am from Nigeria.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jul 25, 2023
@tim-finnigan tim-finnigan added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jul 25, 2023
@github-actions
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. 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 upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jul 30, 2023
@github-actions github-actions bot closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness lambda response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants