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

Subscription to an empty stream with the watch([]) method often causes a panic #24327

Open
chabanov opened this issue Jun 25, 2024 · 0 comments
Labels
--watch related to the watch feature of the CLI bug Something isn't working correctly ext/kv Related to "Deno.openKv()" API

Comments

@chabanov
Copy link

async function logs(engine: Deno.Kv, connector: Connector){
    try {
        const stream = engine.watch([]);
        for await (const entries of stream) {
            console.log(entries)
        }
    } catch (e) {
        console.log(e);
    }
}

Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos aarch64
Version: 1.42.4
Args: ["deno", "run", "-A", "--unstable-kv", "--watch", "main.ts"]

thread 'main' panicked

@satyarohith satyarohith added bug Something isn't working correctly --watch related to the watch feature of the CLI ext/kv Related to "Deno.openKv()" API labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--watch related to the watch feature of the CLI bug Something isn't working correctly ext/kv Related to "Deno.openKv()" API
Projects
None yet
Development

No branches or pull requests

2 participants