Skip to content

Chunk matching resource requests with more than 5000 elements #1222

Closed

Description

@anthonydahanne

the problem

With v3 of the CAPI API, it seems like it's impossible to create a package with more than 5000 matched resources.

If you try it, you may run into this issue:

[ERROR]: Errors occured during script execution. Errors are:
- Application push operation failed. Root cause of the failure should be mentioned below
- CF-UnprocessableEntity(10008): Resources array can have at most 5000 resources
org.cloudfoundry.client.v3.ClientV3Exception: CF-UnprocessableEntity(10008): Resources array can have at most 5000 resources

the suggested solution

The fix would be to chunk such large requests into chunks of request with 5000 max resources.

Activity

  1. added 2 commits that reference this issue on Feb 28, 2024
    2fd0cc6
    7529618
  2. added a commit that references this issue on Feb 29, 2024
    e0861d7
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions