posthog-node
posthog-node copied to clipboard
Official PostHog Node library
Hi there. I recently posted about an [issue](https://stackoverflow.com/questions/78316421/request-timeout-on-api-calls-in-production-in-nextjs-app/78317108?noredirect=1#comment138071326_78317108) I had on Stackoverflow and was advised to share it here as well. I am not 100% confident that Posthog was the...
I'm using Posthog node client in the backend of Nuxtjs app and I'm getting these errors in the console. ``` ERROR AbortSignal is not defined 02:55:25 at PostHogClient. (server.js:1570:17) at...
On v3.1.1 I'm getting this error: It is due to the project's tsconfig having 'rusha': ``` { "extends": "../tsconfig.json", "compilerOptions": { "types": ["node", "rusha"], "typeRoots": ["./node_modules/@types", "../node_modules/@types", "./src/types"] } }...
# Context Next.js (and many other frameworks) provide methods for server-side rendering/hydrating of React components. In Next, this is achieved by exporting a function called `getServerSideProps` from the same file...
**What** > posthog-node package includes hard-coded console.debug calls. Can this be removed? They are flooding our logs with unstructured logs. See conversation here: https://posthog.slack.com/archives/C03JJKLEC8L/p1670622461832859 (internal) **Proposed solution** Either use a...
Hi. I'm using posthog-node 2.0.2 and I get the following error when calling `getAllFlags`: ``` TypeError: undici__default.default.fetch is not a function at PostHogClient.fetch (/node_app/back/api/node_modules/@visage/visage-server-common/node_modules/posthog-node/src/posthog-node.ts:53:19) at /node_app/back/api/node_modules/@visage/visage-server-common/node_modules/posthog-core/src/index.ts:647:33 at /node_app/back/api/node_modules/@visage/visage-server-common/node_modules/posthog-core/src/utils.ts:23:25 at step...
## Is this related to platform? No ## Describe the Problem PostHog CLI/SDK throws an error only if we pass an empty string. It doesn't intimate if API Key is...
## Is this related to a platform? No ## Describe the Problem. Currently, there is no way to check, "How data is getting logged?" or "Is there some even triggering...
## Is your feature request related to a problem? Nope ## Describe the solution you'd like `opt_out` functionality for posthog-node. This would allow CLIs etc to allow certain users to...