Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust] ERR: Invalid Compression Flag #423

Open
nixxholas opened this issue Sep 9, 2024 · 0 comments
Open

[Rust] ERR: Invalid Compression Flag #423

nixxholas opened this issue Sep 9, 2024 · 0 comments

Comments

@nixxholas
Copy link

gRPC error message: Status { code: Internal, message: "protocol error: received message with invalid compression flag: 60 (valid flags are 0 and 1) while receiving response with status: 403 Forbidden", source: None }

let mut geyser_client = match GeyserGrpcClient::build_from_shared(self.config.rpc_url.to_string())?
                .max_decoding_message_size(100 * 1024 * 1024)
                .accept_compressed(tonic::codec::CompressionEncoding::Gzip)
                .x_token(Some(geyser_api_token))?
                .connect()
                .await {
                Ok(client) => client,
                Err(e) => {
                    panic!("[Solana] Error creating GeyserGrpcClient: {:?}", e);
                }
            };

The above code previously worked. After a simple clean and rebuild, along with post-data received code changes, the above error occurred. Reverting did not help.

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

No branches or pull requests

1 participant