You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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:
Upped the timeout to 5 minutes, but that doesn't change anything.
Publishing with a custom CancellationTokenSource with a 5second timeout, but that doesn't cancel the task (which is odd in itself).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(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