Skip to content

Conversation

@yusharma-pp
Copy link
Collaborator

@yusharma-pp yusharma-pp commented May 12, 2025

From Node 22 onwards, there is failure while calling PUT request:

The issue arises because of changes in the behavior of the module in Node.js 22 compared to Node.js 16. Specifically, the secureConnect event may not be emitted as expected in Node.js 22 due to stricter handling of TLS connections or changes in the event lifecycle.

In this change, We are using the connect event Instead of secureConnect on socket connection while calling https.request.

@yusharma-pp yusharma-pp self-assigned this May 12, 2025
Copy link
Collaborator

@ansonipaypal ansonipaypal left a comment

Choose a reason for hiding this comment

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

One minor question, rest LGTM.

@yusharma-pp yusharma-pp merged commit 87fc800 into chargehound:main May 13, 2025
8 checks passed
@yusharma-pp yusharma-pp deleted the node-22-upgrade branch May 13, 2025 05:43
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.

3 participants