Hi all. So one of our workflows completes successfully on the 1st run, but starting from the 2nd gives the following error:
{
"message": "UnknownError",
"source": "TypeScriptSDK",
"stackTrace": "403: UnknownError\n at throwDefaultError (/app/node_modules/@smithy/smithy-client/dist-cjs/index.js:836:20)\n at /app/node_modules/@smithy/smithy-client/dist-cjs/index.js:845:5\n at de_CommandError (/app/node_modules/@aws-sdk/client-s3/dist-cjs/index.js:4829:14)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20\n at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:485:18\n at async /app/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38\n at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:110:22\n at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14\n at async /app/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22\n at async s3GetSourceAndPutDestination (/app/src/activities/copy-source-meca.ts:92:32)\n at async Activity.execute (/app/node_modules/@temporalio/worker/src/activity.ts:104:14)\n at async /app/node_modules/@temporalio/worker/src/activity.ts:131:24\n at async /app/node_modules/@temporalio/worker/src/worker.ts:1047:24",
"applicationFailureInfo": {
"type": "S3ServiceException"
}
}
This only happens on local dev environment, but works fine on staging for multiple runs. Restarting docker, and re-running the WF makes it go through - but it’s not ideal. Any similar experiences or ideas as for why this can happen?
Thanks