-
Notifications
You must be signed in to change notification settings - Fork 862
Closed
Labels
Description
Trying to run @github/copilot-sdk in my ADO task. I am getting this error. The Copilot CLI session never starts. Been running the Copilot CLI commands directly and it seems to work.
##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Cannot call write after a stream was destroyed
##[error]Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at _write (node:internal/streams/writable:491:11)
at Writable.write (node:internal/streams/writable:510:10)
at /home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/node/ril.js:88:29
at new Promise (<anonymous>)
at WritableStreamWrapper.write (/home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/node/ril.js:78:16)
at StreamMessageWriter.doWrite (/home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:99:33)
at /home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:90:29
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;]Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at _write (node:internal/streams/writable:491:11)
at Writable.write (node:internal/streams/writable:510:10)
at /home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/node/ril.js:88:29
at new Promise (<anonymous>)
at WritableStreamWrapper.write (/home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/node/ril.js:78:16)
at StreamMessageWriter.doWrite (/home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:99:33)
at /home/vsts/work/_tasks/AzureAppConfigurationImport_fd186364-adb5-43c0-91ea-c5f9daa5b747/10.268.1/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:90:29
I am using @github/copilot-sdk version : "0.1.15, since my task only supports node v20 at the moment.
Any ideas on how I can get the sdk to run in my pipeline.
Reactions are currently unavailable