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

Exception trying to call to a web method #1096

Open
AlbertoVPersonal opened this issue Oct 30, 2024 · 0 comments
Open

Exception trying to call to a web method #1096

AlbertoVPersonal opened this issue Oct 30, 2024 · 0 comments

Comments

@AlbertoVPersonal
Copy link

Version

  • async-std v1.13.0

Platform

Microsoft Windows 11 Pro
10.0.22631
22631
64 bits

Description

I want to call to a web method and the system raises an exception when it tries to do the call.
The web method runs and it returns the valid response when it is called from Postman or similar clients.

Given the code, the sytem raises an exception.

I tried this code:

let post_call_result = client.post("http://localhost/serial_number/1");

async_std::task::block_on(async {
    let res1 = post_call_result.send().await;
    match res1 {
        Ok(_) => println!("OK!"),
        Err(e) => eprintln!("\nError CALL WS: {}", e)
    }
});

I expected to see this happen:

the call is successfull.

Instead, this happened: the system raised this exception.

thread 'main' panicked at C:\Users\MY_USER\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-global-executor-2.4.1\src\init.rs:39:18:
cannot spawn executor threads: Os { code: 87, kind: InvalidInput, message: "El parámetro no es correcto." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at C:\Users\MY_USER\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-io-2.3.4\src\driver.rs:34:14:
cannot spawn async-io thread: Os { code: 87, kind: InvalidInput, message: "El parámetro no es correcto." }
stack backtrace:
   0:     0x7ffffd564d91 - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
   1:     0x7ffffd564d91 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ffffd564d91 - std::sys::backtrace::_print_fmt
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\sys\backtrace.rs:66
   3:     0x7ffffd564d91 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\sys\backtrace.rs:39
   4:     0x7ffffd5964b9 - core::fmt::rt::Argument::fmt
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\fmt\rt.rs:177
   5:     0x7ffffd5964b9 - core::fmt::write
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\fmt\mod.rs:1178
   6:     0x7ffffd55af57 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\io\mod.rs:1823
   7:     0x7ffffd567ea9 - std::panicking::default_hook::closure$1
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:266
   8:     0x7ffffd567a2c - std::panicking::default_hook
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:293
   9:     0x7ffffd568882 - std::panicking::rust_panic_with_hook
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:797
  10:     0x7ffffd5686c6 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:671
  11:     0x7ffffd56584f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\sys\backtrace.rs:170
  12:     0x7ffffd5682d6 - std::panicking::begin_panic_handler
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:662
  13:     0x7ffffd5c1924 - core::panicking::panic_fmt
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\panicking.rs:74
  14:     0x7ffffd5c1ed0 - core::result::unwrap_failed
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\result.rs:1677
  15:     0x7ff7688bcc6f - main
  16:     0x7ff7688af86e - main
  17:     0x7ff8a10ff540 - _CxxFrameHandler3
  18:     0x7ff8a10f3a86 - is_exception_typeof
  19:     0x7ff8a10fea14 - _C_specific_handler
  20:     0x7ff8a10f2c94 - is_exception_typeof
  21:     0x7ff8a10ff351 - _CxxFrameHandler3
  22:     0x7ff8b77151ff - _chkstk
  23:     0x7ff8b7690144 - RtlUnwindEx
  24:     0x7ffffd5b33ca - __FrameHandler3::UnwindNestedFrames
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:759
  25:     0x7ffffd5b404d - CatchIt<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1326
  26:     0x7ffffd5b4392 - FindHandler<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:670
  27:     0x7ffffd5b4af9 - __InternalCxxFrameHandler<__FrameHandler3>
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:396
  28:     0x7ffffd5b3539 - __CxxFrameHandler3
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\risctrnsctrl.cpp:281
  29:     0x7ff8b771517f - _chkstk
  30:     0x7ff8b768e856 - RtlFindCharInUnicodeString
  31:     0x7ff8b76c4925 - RtlRaiseException
  32:     0x7ff8b704fe4c - RaiseException
  33:     0x7ffffd5b35e7 - _CxxThrowException
                               at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:81
  34:     0x7ffffd57f570 - panic_unwind::imp::panic
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/panic_unwind\src\seh.rs:359
  35:     0x7ffffd57f570 - panic_unwind::__rust_start_panic
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/panic_unwind\src\lib.rs:99
  36:     0x7ffffd568bf5 - std::panicking::rust_panic
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:858
  37:     0x7ffffd568910 - std::panicking::rust_panic_with_hook
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:822
  38:     0x7ffffd5686c6 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:671
  39:     0x7ffffd56584f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\sys\backtrace.rs:170
  40:     0x7ffffd5682d6 - std::panicking::begin_panic_handler
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:662
  41:     0x7ffffd5c1924 - core::panicking::panic_fmt
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\panicking.rs:74
  42:     0x7ffffd5c1ed0 - core::result::unwrap_failed
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/core\src\result.rs:1677
  43:     0x7ff7688aeb9c - main
  44:     0x7ff7688cb261 - main
  45:     0x7ff7688a3078 - __ImageBase
  46:     0x7ff768913d15 - main
  47:     0x7ff7689d53cb - _guard_xfg_dispatch_icall_nop
  48:     0x7ff7688a07cd - __ImageBase
  49:     0x7ff7688a5895 - __ImageBase
  50:     0x7ff7688a3523 - __ImageBase
  51:     0x7ff768886b56 - __ImageBase
  52:     0x7ff768886890 - __ImageBase
  53:     0x7ffffd54be39 - std::rt::lang_start_internal::closure$2
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\rt.rs:143
  54:     0x7ffffd54be39 - std::panicking::try::do_call
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:554
  55:     0x7ffffd54be39 - std::panicking::try
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panicking.rs:518
  56:     0x7ffffd54be39 - std::panic::catch_unwind
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\panic.rs:345
  57:     0x7ffffd54be39 - std::rt::lang_start_internal
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14\library/std\src\rt.rs:143
  58:     0x7ff7688aa81c - main
  59:     0x7ff7689d351c - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  60:     0x7ff7689d351c - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  61:     0x7ff8b73c257d - BaseThreadInitThunk
  62:     0x7ff8b76caf08 - RtlUserThreadStart
error: process didn't exit successfully: `target\release\erver.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
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