Skip to content

Github API response truncated when per_page ~ 30 #1

Description

@pdclark

When lots of plugin metadata is included the wp_remote_get() response from Github, the response body gets truncated. This causes json_decode to fail, and no data to display.

Unknown whether this is a limitation of wp_remote_get, the Github API, or some encoding error.

Reducing per_page to 20 appears to resolve the issue most the time, but then make the post-search filtering in #2 more obvious.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions