Skip to content

logs --subscribe broken after migration to alloy #7682

@bernard-wagner

Description

@bernard-wagner

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

cast 0.2.0 (ee47bb0 2024-04-16T00:22:03.808948000Z)

What command(s) is the bug in?

cast logs

Operating System

macOS (Apple Silicon)

Describe the bug

Something I also overlooked for f840dbd

When using cast logs --subscribe with a valid WebSocket endpoint a subscriptions are not available on this provider error is always returned.

Alloy uses downcasting to determine whether a Transport implements PubSubFrontend, however, this doesn't work for RetryBackoffService<RuntimeTransport> and other towers.

https://github.com/alloy-rs/alloy/blob/3ac4df34d18dc3c523e552a2590de55361cff0d2/crates/provider/src/provider.rs#L174

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions