Skip to content

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 2, 2025

Description

A posthog error appears where there is no internet connection prevent further chat. This PR fixes it.

posthog connection error ``` Error while flushing PostHog PostHogFetchNetworkError: Network error while fetching PostHog at file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:569:23 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async retriable (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/utils.mjs:17:25) at async PostHog.fetchWithRetry (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:561:16) at async PostHog._flush (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:527:17) { error: TypeError: fetch failed at node:internal/deps/undici/undici:13502:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:564:23 at async retriable (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/utils.mjs:17:25) at async PostHog.fetchWithRetry (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:561:16) at async PostHog._flush (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:527:17) { [cause]: Error: getaddrinfo ENOTFOUND app.posthog.com at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'app.posthog.com' } }, [cause]: TypeError: fetch failed at node:internal/deps/undici/undici:13502:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:564:23 at async retriable (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/utils.mjs:17:25) at async PostHog.fetchWithRetry (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:561:16) at async PostHog._flush (file:///Users/instinct/Desktop/continue/extensions/cli/node_modules/@posthog/core/dist/index.mjs:527:17) { [cause]: Error: getaddrinfo ENOTFOUND app.posthog.com at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'app.posthog.com' } } } ```

resolves CON-3551

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]

@uinstinct uinstinct requested a review from a team as a code owner September 2, 2025 17:56
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team September 2, 2025 17:56
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 2, 2025
Copy link
Collaborator

@tingwai tingwai left a comment

Choose a reason for hiding this comment

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

Tested it, looks good!

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 8, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 8, 2025
@tingwai tingwai merged commit 3f5dd9d into continuedev:main Sep 8, 2025
57 of 58 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Sep 8, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2025
@uinstinct uinstinct deleted the cli-telemetry-no-connection branch September 9, 2025 02:26
@sestinj
Copy link
Contributor

sestinj commented Sep 11, 2025

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants