79826582

Date: 2025-11-21 14:14:58
Score: 0.5
Natty:
Report link

If you use AWS SDK v2, it for some reason hides stack trace from you.

Here is the workaround you can try:

yourCallWithAwsSdkV2().promise().catch(reThrow);

function reThrow(error: any): never {
  const better: any = new Error(error.message);
  better.code = error.code;

  throw better;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cockootec