Skip to content

PushShift Bug : Not all PushShift shards are active #149

Open

Description

@OdelyaBeker

Every time I try to run the PushshiftAPI() it gives me the following error: pmaw.PushshiftAPIBase: Not all PushShift shards are active. Query results may be incomplete.
Do you know what I can do?

Activity

  1. AnjaliTajane commented on Jan 7, 2025

    @AnjaliTajane

    The error indicates that some Pushshift API shards are temporarily down or inactive, which may lead to incomplete data being returned. This can happen due to maintenance or high server traffic. One simple approach is to wait and try again after some time, as the issue may be temporary. If you’re querying a large dataset, consider breaking your queries into smaller time periods or specific subsets of data, which could reduce the load and possibly avoid relying on inactive shards. Another strategy is to implement a retry mechanism in your code, which attempts to query again after a short delay if the error occurs. This helps mitigate the issue if it is intermittent. Additionally, check the Pushshift status page for updates on any ongoing service outages. If the issue persists, you may consider using alternative APIs like Reddit's official API or exploring other third-party libraries for retrieving Reddit data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions