Skip to content

[source-posthog] API consistently failing with 500 error and timeouts – worked for months, now unusable #60293

Open
@DmACKGL

Description

@DmACKGL

Connector Name

source-posthog

Connector Version

1.1.25

What step the error happened?

During the sync

Relevant information

We’re using Airbyte to extract events data from PostHog via their /events/ API endpoint, which worked fine for months. Starting a few weeks ago, the sync began failing with HTTP 500 errors from the PostHog side.

We’ve tested:
• Reducing the time range
• Tuning offsets and limits
• Running the same API calls manually (outside of Airbyte)

Even when manually calling the documented API endpoint, we receive 500 server errors and Cloudflare 524 timeouts from PostHog.

The API call is made as documented here: https://posthog.com/docs/api/events
But the endpoint is now deprecated according to PostHog support (confirmed in recent support thread).

PostHog recommends using Batch Exports instead, but that is not currently supported by the Airbyte connector (AFAIK).

Relevant log output

Request URL: https://app.posthog.com/api/projects/REDACTED/events/?offset=810000&limit=10000&after=2025-03-28T15%3A27%3A10.322000%2B00%3A00&before=2025-04-12T15%3A27%3A10.321999%2B0000, Response Code: 500, Response Text: <!DOCTYPE html>
<html lang="en">
    <head>
        <title>PostHog</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">

<!-- Favicons & OS-theme configurations -->
<link rel="apple-touch-icon" sizes="180x180" href="/static/icons/apple-touch-icon.png?v=2023-07-07">
<link rel="icon" type="image/png" sizes="32x32" href="/static/icons/favicon-32x32.png?v=2023-07-07">
<link rel="icon" type="image/png" sizes="16x16" href="/static/icons/favicon-16x16.png?v=2023-07-07">

    <link rel="shortcut icon" href="/static/icons/favicon.ico?v=2023-07-07">

<link rel="mask-icon" href="/static/icons/safari-pinned-tab.svg?v=2023-07-07" color="#FF053C">
<link rel="manifest" href="/static/site.webmanifest?v=2023-07-07">
<meta name="apple-mobile-web-app-title" content="PostHog">
<meta name="application-name" content="PostHog">





<script id='posthog-app-user-preload'>
    window.POSTHOG_APP_CONTEXT = JSON.parse("");
    // Inject the expected location of JS bundle, use to allow the location of
    // he bundle to be set at runtime, e.g. for PostHog Cloud we serve the
    // frontent JS from a CDN
    window.JS_URL = "";
    window.JS_CAPTURE_TIME_TO_SEE_DATA = false;
    window.JS_KEA_VERBOSE_LOGGING = false;
</script>

    </head>
    <style>
        html, body, iframe {
            width: 100%;
            height: 100%;
            margin: 0;
        }
        body {
            display: flex;
        }
        iframe {
            border: none;
        }
    </style>
    <body>
        <iframe src="https://posthog.com/service-error#REDACTED"/>
    </body>
</html>

Contribute

  • Yes, I want to contribute

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions