nitrictech / cli

Nitric CLI. Manage and run Nitric apps locally and deploy to any cloud.
https://nitric.io
Apache License 2.0
26 stars 10 forks source link

Graceful handling of errors - Error downloading pulumi or plugins #288

Closed raksiv closed 2 years ago

raksiv commented 2 years ago

When a component of the build fails due to a connection failure in downloading a resource, a retry should be initiated before a fatal exception is thrown.

Example error log -

Installing Pulumi plugin aws:v4.38.1 Step https://github.com/nitrictech/project-name-masked/pull/3:

ERROR: loading pulumi stack: InstallPlugin aws v4.38.1: failed to install plugin: exit status 255 Step https://github.com/nitrictech/project-name-masked/pull/3: code: 255 Step https://github.com/nitrictech/project-name-masked/pull/3: stdout: Step https://github.com/nitrictech/project-name-masked/pull/3: stderr: [resource plugin aws-4.38.1] installing Step https://github.com/nitrictech/project-name-masked/pull/3: error: installing [resource plugin aws-4.38.1] from : untarring file /workspace/raksiv-nitric-aws-ses-mustache-f45441e/.pulumi/plugins/resource-aws-v4.38.1/pulumi-resource-aws: read tcp 192.168.10.2:41040->185.199.108.133:443: read: connection reset by peer

nitric-bot commented 2 years ago

:tada: This issue has been resolved in version 1.9.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: