Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error in RPC response instead of exiting in the language runtime #16162

Merged
merged 1 commit into from
May 10, 2024

Conversation

julienp
Copy link
Contributor

@julienp julienp commented May 10, 2024

Description

If we can't start the node process for some reason, report back the error via RPC instead of exiting immediately.

Fixes #11706

Instead of:
Screenshot 2024-05-10 at 15 05 37
we get
Screenshot 2024-05-10 at 15 06 19

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@julienp julienp requested a review from a team as a code owner May 10, 2024 13:13
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2024-05-10)

Bug Fixes

  • [sdk/nodejs] Return error in RPC response instead of exiting in the language runtime
    #16162

Base automatically changed from julienp/ambiguous-error-when-package.json-error to master May 10, 2024 14:31
If we can't start the node process for some reason, report back the
error via RPC instead of exiting immediately.
@julienp julienp added this pull request to the merge queue May 10, 2024
Merged via the queue into master with commit ee4ca16 May 10, 2024
49 checks passed
@julienp julienp deleted the julienp/rpc-error branch May 10, 2024 16:05
@justinvp justinvp mentioned this pull request May 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 13, 2024
Tentative changelog:

### Bug Fixes

- [engine] Fix dataraces between snapshot and deployment systems.
  [#16148](#16148)

- [cli/display] Fix mangled diffs of strings containing url-encoded
chars
  [#16147](#16147)

- [sdk/nodejs] Don't load punycode module in function serialization code
  [#16149](#16149)

- [sdk/nodejs] Return error in RPC response instead of exiting in the
language runtime
  [#16162](#16162)

- [sdk/nodejs] Return the underlying error if we can't locate the pulumi
SDK
  [#16160](#16160)

- [sdk/python] Provide more descriptive exception
  [#16098](#16098)

- [sdk/python] Fix typings for `from_input` and `all` to not return
`Never` types.
  [#16139](#16139)

- [sdk/python] Fix a race condition in output handling
  [#16155](#16155)


### Miscellaneous

- [pkg] Upgrade pulumi-java to v0.11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spurious error: error reading from server: EOF in normal error path(s)
4 participants