Skip to content

fix: surface startTransform errors instead of swallowing them#2706

Open
Rajanna-Karthik wants to merge 1 commit intomainfrom
karsraja/fix-error-swallowing
Open

fix: surface startTransform errors instead of swallowing them#2706
Rajanna-Karthik wants to merge 1 commit intomainfrom
karsraja/fix-error-swallowing

Conversation

@Rajanna-Karthik
Copy link
Copy Markdown
Contributor

When ATX Transform commands fail, the LSP server's executeCommand handler catches errors and silently returns undefined. This makes it impossible to diagnose failures from test output or client-side logs — the only visible symptom is expected undefined to exist with no indication of what went wrong.

This caused the LSP integ test alarm (V2135436135) to remain open for 47 days. The actual root cause was a ValidationException: max jobs quota reached, but it took multiple hours of log investigation to discover because the error was swallowed.

Changes

  • atxNetTransformServer.ts: Return { error: String(e) } from the catch block instead of implicitly returning undefined. Callers that check for specific fields (e.g., TransformationJobId) are unaffected — the field will still be undefined. Verified safe against the toolkit C# AtxStartTransformResponse model
    which uses [DataMember] deserialization and ignores unknown fields.
  • atxTransformHandler.ts: Enhanced createJob error logging to include requestId and httpStatusCode from the AWS SDK error metadata. No behavior change — still returns null.
  • atxTransformInteg.test.ts: Added console.log of the raw startTransform response before the assertion, so errors are visible in CodeBuild output.

Testing

  • Verified toolkit C# AtxStartTransformResponse model ignores unknown error field

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Rajanna-Karthik Rajanna-Karthik requested a review from a team as a code owner April 27, 2026 23:19
@Rajanna-Karthik Rajanna-Karthik force-pushed the karsraja/fix-error-swallowing branch 2 times, most recently from e450c06 to fec5900 Compare April 28, 2026 23:32
Return error object from catch block in atxNetTransformServer.ts
instead of implicitly returning undefined. Add console.log in
TEST 2 to log the raw startTransform response for debugging.
@Rajanna-Karthik Rajanna-Karthik force-pushed the karsraja/fix-error-swallowing branch from fec5900 to ee876b3 Compare April 29, 2026 00:06
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.

1 participant