Closed smoothstill closed 8 months ago
@smoothstill Good morning. Could you please share your execution environment? In case of Lambda execution environment, using custom logging also suffers from the same issue due to reasons mentioned in https://github.com/aws/aws-logging-dotnet?tab=readme-ov-file#aws-lambda. In your case, you are sending PutEventsAsync
request using async/await pattern and by the time the result of PutEventsAsync
is received, Lambda event is already processed and the execution thread is frozen.
Could you try the following:
PutEventsAsync
call is frozen, could you send another request to the Lambda function in a separate thread and examine if the previous request is now processed?Task
object of PutEventsAsync
call and instead of awaiting it, use Task.WaitAll(taskObject);
Thanks, Ashish
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.
Describe the bug
We have a function which is supposed to send an event to event bridge event bus:
However, during runtime the function gets stuck at method PutEventsAsync(), and it remains stuck until the function timeouts (even if I set maximum timeout of 900 seconds to the function).
The problem is that I have zero clue on why this happens because there are no exceptions or any errors in the log files to tell me what is the issue. I only know that no code is executed after PutEventAsync(). So my question is, is there a way to increase the verbosity of the event bridge client so that I know why it gets stuck here?
Here are the logs:
Interestingly, sending events seem to work well in our staging environment, just not in sandbox environment, even though there should not be any differences that would effect sending events. It is really difficult to understand why this happens when there are no information to tell me what is wrong with the event bridge client, so if anyone has any clues on why this happens, feel free to share them.
Expected Behavior
I would expect to receive an exception or error/warning message from event bridge client when the runtime gets stuck on PutEventsAsync() method.
Current Behavior
While executing the function, it appears to get stuck during runtime to PutEventsAsync() without giving any visible reason why this happens.
Reproduction Steps
Uknown
Possible Solution
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.EventBridge 3.7.5.27
Targeted .NET Platform
.Net 6
Operating System and version
x86-64 Linux (The aws/codebuild/standard:7.0 build image)