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

[Bug] Provider - subscribe_full_pending_transactions deserializing error #1802

Open
hjawhar opened this issue Dec 16, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@hjawhar
Copy link

hjawhar commented Dec 16, 2024

Component

provider, pubsub, serde

What version of Alloy are you on?

alloy v0.8.0

Operating System

Linux

Describe the bug

Subscribing to full pending transactions is throwing the following error, the error can be reproduced using the following snippet:

pub async fn subscribe_to_txs_eth(&self) {
    let provider = self.get_provider(&Network::Ethereum).as_ws();
    let sub = provider.subscribe_full_pending_transactions().await;
    if let Ok(sub) = sub {
        let mut stream = sub.into_stream();
        while let Some(tx) = stream.next().await {
            println!("{:#?}", tx);
        }
    }
}

Result:

2024-12-16T10:09:01.254763Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 1301 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.350771Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 486 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.451026Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 616 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.451571Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 484 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.451683Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 614 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.665247Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 4825 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.665573Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 485 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
2024-12-16T10:09:01.760554Z ERROR tokio-runtime-worker ThreadId(06) failed deserializing subscription item err=missing field `from` at line 1 column 579 self.id=0x745ec89e2342f62441d1d47c397d4852e759d8c0fecb5828e97e26251d813a48
@hjawhar hjawhar added the bug Something isn't working label Dec 16, 2024
@delef
Copy link

delef commented Dec 23, 2024

@hjawhar why the issue was closed?

@hjawhar
Copy link
Author

hjawhar commented Dec 23, 2024

@delef It's still pending.

@Paulius0112
Copy link

Hi! Can I work on this issue please? @hjawhar

@yash-atreya
Copy link
Member

@hjawhar which chain are you interacting with? Is it OP-Stack based?

If yes, the solution is similar to the one suggested here #1803 (comment). Using AnyNetwork or Optimism network type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants