This repository was archived by the owner on Jul 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
UnhandledPromiseRejectionWarning: TypeError: Incorrectly typed arguments to startBatch #4
Copy link
Copy link
Open
Description
Hi,
I came across your Medium post on pulumi-run-fargate-task today and it's exactly what I was looking for ! I unfortunately got bit by a compilation error, namely with
import pulumi from '@pulumi/pulumi'
import awsx from '@pulumi/awsx'
in fargate-run-task.ts and
import awsSdk from 'aws-sdk'
in runFargateTask.ts. These were easy enough to fix, but then when I actually call FargateRunTask I'm getting an exception:
pulumi:pulumi:Stack (aws-architecture-dev):
error: update failed
(node:24873) UnhandledPromiseRejectionWarning: TypeError: Incorrectly typed arguments to startBatch
at handleError (/home/luis/Code/outmind/outmind-app/aws-architecture/node_modules/grpc/src/server.js:72:8)
at sendUnaryData (/home/luis/Code/outmind/outmind-app/aws-architecture/node_modules/grpc/src/server.js:598:9)
at Object.<anonymous> (/home/luis/Code/outmind/outmind-app/aws-architecture/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:184:20)
at Generator.throw (<anonymous>)
at rejected (/home/luis/Code/outmind/outmind-app/aws-architecture/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:19:65)
(node:24873) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:24873) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I tried wrapping bits of code in pulumi-run-fargate-task in try / catch blocks to no avail. Any idea what could be happening here? I really love this approach and would like to use it in my code.
Thanks,
Luis
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels