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

Deno panic while using Deno.connectTls() in (async function(){}()) #24389

Closed
vdata1 opened this issue Jul 2, 2024 · 1 comment
Closed

Deno panic while using Deno.connectTls() in (async function(){}()) #24389

vdata1 opened this issue Jul 2, 2024 · 1 comment

Comments

@vdata1
Copy link

vdata1 commented Jul 2, 2024

Hi,
I want to report Deno panic while using Deno.connectTls(), you can reproduce the permission panic by running the following code:

// Deno Version: 1.44.4 
(async function () {
    const conn3 = await Deno.connectTls({
        hostname: '[2001:db8::1]',
        port: 80
    })
}())

STACKTRACE logs:

============================================================
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 x86_64
Version: 1.44.4
Args: ["deno", "run", "test.ts"]

thread 'main' panicked at /Users/runner/work/deno/deno/runtime/permissions/lib.rs:698:19:
called Result::unwrap() on an Err value: InvalidLabelChar
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: deno_permissions::UnaryPermission<deno_permissions::NetDescriptor>::check
4: deno_net::ops_tls::op_net_connect_tls::op_net_connect_tls::call::{{closure}}
5: <deno_core::runtime::op_driver::futures_unordered_driver::FuturesUnorderedDriver as deno_core::runtime::op_driver::OpDriver>::submit_op_fallible
6: deno_net::ops_tls::op_net_connect_tls::op_net_connect_tls::v8_fn_ptr

Thanks,

@lucacasonato
Copy link
Member

Duplicate of #23753

@lucacasonato lucacasonato marked this as a duplicate of #23753 Jul 2, 2024
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

2 participants