Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

A connection to https://us.posthog.com/ was leaked #60

@shalom938

Description

@shalom938

we are seeing this kind of error , its an intellij plugin.
I think when it happens some events are not sent

2024-08-21 17:10:41,395 [ 313941] WARN - com.posthog.java.shaded.okhttp3.OkHttpClient - A connection to https://us.posthog.com/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);

we initialize posthog like that
PostHog.Builder(TOKEN).build()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions