Skip to content

fix: webhook DNS pin lookup for Node 24 - #527

Merged
unjica merged 2 commits into
developfrom
fix/webhook-dns-lookup-node24
Jul 17, 2026
Merged

unjica merged 2 commits into
developfrom
fix/webhook-dns-lookup-node24

Conversation

@unjica

@unjica unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes production alert webhook delivery failures on Node 24: custom https.request lookup now handles { all: true } by returning [{ address, family }] instead of the single-address form that yielded Invalid IP address: undefined.
  • Extracts createPinnedWebhookLookup and adds Vitest coverage for all: true, single-address, and two-arg callback shapes.
  • CHANGELOG note under [Unreleased].

Context

Smoke tests reproduced delivery failures in prod and locally. Node 24 invokes the custom lookup with { all: true } and expects callback(null, addresses[]); the previous always-single-address callback broke TCP connect.

Test plan

  • pnpm exec eslint on changed files
  • pnpm exec vitest run src/lib/alert-webhook-dispatch.test.ts (43 passed)
  • Re-smoke webhook delivery after merge/deploy (prod + local Node 24)
  • Confirm alert webhook POST succeeds (no Invalid IP address: undefined)

Notes

Made with Cursor

unjica and others added 2 commits July 17, 2026 18:22
Node 24 invokes https.request lookup with { all: true } and expects an address array; the single-address callback caused Invalid IP address: undefined and failed deliveries.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit a7701ce into develop Jul 17, 2026
5 of 6 checks passed
@unjica
unjica deleted the fix/webhook-dns-lookup-node24 branch July 17, 2026 16:32
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