Merged
Conversation
getProgramAccounts batch bug Triton's RPC backend returns a single -32700 parse-error response when it receives a JSON-RPC batch where every item is a getProgramAccounts call on BPFLoaderUpgradeab1e11111111111111111111111. Mixed batches and single requests work fine. governance-ui sends exactly this broken pattern on every page load to discover which programs the DAO governs, leaving the Governance dropdown empty for all Adrena admin proposal forms. Workaround: in the proxy handler, detect the bug response shape (HTTP 200 + non-array body + error.code -32700 + original was a batch) and retry by sending each batched item as an individual request in parallel, then recombine into a batch-shaped response. Verified end-to-end against the live Triton endpoint with a standalone Python dry run mirroring the TS logic (29/29 assertions passed, including the exact failing batch from the production HAR).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.