Skip to content

fix: rejectUnauthorised failing in some circumstances#492

Merged
GordonSmith merged 1 commit intohpcc-systems:mainfrom
GordonSmith:REJECT_UNAUTH
Jan 26, 2026
Merged

fix: rejectUnauthorised failing in some circumstances#492
GordonSmith merged 1 commit intohpcc-systems:mainfrom
GordonSmith:REJECT_UNAUTH

Conversation

@GordonSmith
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an issue where rejectUnauthorized SSL certificate validation was failing in certain circumstances. The fix involves adding enhanced error logging to capture the underlying error cause, which is particularly important given the update to @hpcc-js/comms that now uses undici instead of node-fetch for HTTP requests.

Changes:

  • Enhanced error logging in launchConfig.ts to log error.cause.message for better debugging of SSL/connection failures
  • Updated @hpcc-js/comms from 3.12.1 to 3.14.1, which changes the HTTP client library from node-fetch to undici
  • Updated multiple related @hpcc-js/* packages and other dependencies for compatibility
  • Added a new sample launch configuration for IP-based connection testing with rejectUnauthorized: false

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/hpccplatform/launchConfig.ts Added error.cause.message logging in verifyUser catch block to help diagnose SSL certificate validation issues
package.json Updated @hpcc-js/comms and related packages; updated various dev dependencies including vitest, typescript-eslint, and @vscode/extension-telemetry
package-lock.json Lock file updates corresponding to package.json changes; notably @hpcc-js/comms now uses undici instead of node-fetch, and lodash updated to 4.17.23 (security patch)
ecl-sample/.vscode/launch.json Added new "play-IP" launch configuration for testing IP-based connections with rejectUnauthorized disabled

Copy link
Collaborator

@jeclrsg jeclrsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GordonSmith Just one question about that copilot comment regarding the vscode engine / types versions

@GordonSmith GordonSmith merged commit 34fca8f into hpcc-systems:main Jan 26, 2026
10 checks passed
@github-actions
Copy link
Contributor

🎉 This change has been included in ecl-v2.35.1 🎉

The release is available on:

Your release-please bot 🚀🙏

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.

2 participants