Skip to content

Conversation

@Harsh10022004
Copy link

Description

Fixes #181.

This PR addresses the "maximum agent message header size exceeded" error that occurs during delegation storage (access/delegate). The crash was caused by the system including the full history of nested proofs in the invocation header.

Solution

  • Implemented a pruning mechanism to adhere to the requested fix of stripping unnecessary blocks in the Guppy client.
  • Added the pruneDelegation helper function which ensures only the single root block of the delegation is included in the message, significantly reducing payload size and preventing the crash.

Verification

Tested by running existing and new regression tests within the package.

Command:

go test -v ./pkg/client -run TestAccessDelegate

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too many spaces causes maximum agent message header size exceeded

1 participant