AWS SNS publish is hanging on Lambda #5172
Unanswered
Soundman32
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(This isn't a MT issue. I've replaced the MT part with a direct publish to SNS, and it still fails (and never times out), any ideas gratefully received).
I'm running out of ideas why my app won't publish messages when I deploy it to an AWS Lambda. Everything up to the publish is working (and if I comment out the publish line, the code executes fully).
It runs locally without issues (debug & release builds).
It must be a permission issue, but I've added the suggested roles/policies to the IAM role (as specified here). I don't get any logging beyond the publish filters I've written. The code just hangs until the Lambda times out. I do have a try/catch wrapper around everything and that doesn't occur (it catches any other exception).
What I've tried:
cfg.UseTimeout(x => x.Timeout = TimeSpan.FromSeconds(5));
cfg.ConfigurePublish(p => p.UseRetry(c => c.None()));
Running locally (in Release build), I get
But when running on the Lambda, I don't get any of the MT logging (but I do get the other logging I've added to my code).
Any suggestions for what I can look for would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions