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] send via http or file method sometimes produce a 500 Internal Server Error with data Body #51

Open
johanneshahn opened this issue Feb 6, 2023 · 0 comments

Comments

@johanneshahn
Copy link
Member

Sometimes the wallet produce a 500 Internal Server Error when send method http or file is used.
The failed transaction must be cancelled on both, the sender and receiver wallet.

To Reproduce
This error is hard to reproduce because it occurs only sometimes.

Required data

  • Wallet Config default/standard
  • OS: Ubuntu 19
  • Rust rustc 1.56.1 (59eed8a2a 2021-11-01)
  • Cargo 1.56.0 (4ed5d137b 2021-10-04)

This is the error message at the sender Wallet.

2023-02-06 08:01:09.747 ERROR Post TX Error: Request error: Wrong response code: 500 Internal Server Error with data Body
2023-02-06 08:01:09.747 ERROR api: post_tx: failed with error: Client Callback Error: Posting transaction to node: Request error: Wrong response code: 500 Internal Server Error with data Body
2023-02-06 08:01:09.747 ERROR Tx sent fail: Client Callback Error: Posting transaction to node: Request error: Wrong response code: 500 Internal Server Error with data Body
Wallet command failed: LibWallet Error: Client Callback Error: Posting transaction to node: Request error: Wrong response code: 500 Internal Server Error with data Body

This is the Error Message on receiver wallet, which i think is producing sometimes the 500 error Message on sender wallet

22: <hyper::proto::h1::dispatch::Server<S> as hyper::proto::h1::dispatch::Dispatch>::poll_msg
  23: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
  24: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as futures::future::Future>::poll
  25: <hyper::server::conn::spawn_all::NewSvcTask<I,N,S,E,W> as futures::future::Future>::poll
  26: futures::task_impl::std::set
  27: tokio_threadpool::task::Task::run
  28: tokio_threadpool::worker::Worker::run_task
  29: tokio_threadpool::worker::Worker::run
  30: tokio_reactor::with_default
  31: tokio::runtime::builder::Builder::build::{{closure}}
  32: std::thread::local::LocalKey<T>::with
  33: std::thread::local::LocalKey<T>::with
  34: std::sys_common::backtrace::__rust_begin_short_backtrace
  35: core::ops::function::FnOnce::call_once{{vtable.shim}}
  36: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/alloc/src/boxed.rs:1636:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/alloc/src/boxed.rs:1636:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/sys/unix/thread.rs:106:17
  37: start_thread
  38: clone



20230206 08:01:55.609 ERROR epic_util::logger - 
thread 'tokio-runtime-worker-5' panicked at 'called `Result::unwrap()` on an `Err` value: LmdbErr(Error::Code(-30785, 'MDB_MAP_RESIZED: Database contents grew beyond environment mapsize'))': epic-wallet/impls/src/backends/lmdb.rs:348   0: epic_util::logger::send_panic_to_log::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/panicking.rs:628:17
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/panicking.rs:521:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/sys_common/backtrace.rs:141:18
   4: rust_begin_unwind
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/panicking.rs:517:5
   5: core::panicking::panic_fmt
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/core/src/panicking.rs:101:14
   6: core::result::unwrap_failed
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/core/src/result.rs:1617:5
   7: <epic_wallet_impls::backends::lmdb::LMDBBackend<C,K> as epic_wallet_libwallet::types::WalletBackend<C,K>>::set_parent_key_id_by_name
   8: epic_wallet_api::owner::Owner<L,C,K>::set_active_account
   9: <epic_wallet_api::owner::Owner<L,C,K> as epic_wallet_api::owner_rpc::OwnerRpc>::set_active_account
  10: <dyn epic_wallet_api::owner_rpc::OwnerRpc as easy_jsonrpc_mw::Handler>::handle
  11: easy_jsonrpc_mw::handle_call
  12: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
  13: easy_jsonrpc_mw::handle_parsed_request
  14: easy_jsonrpc_mw::Handler::handle_request
  15: futures::future::chain::Chain<A,B,C>::poll
  16: <futures::future::and_then::AndThen<A,B,F> as futures::future::Future>::poll
  17: futures::future::chain::Chain<A,B,C>::poll
  18: <futures::future::and_then::AndThen<A,B,F> as futures::future::Future>::poll
  19: futures::future::chain::Chain<A,B,C>::poll
  20: futures::future::chain::Chain<A,B,C>::poll
  21: <futures::future::or_else::OrElse<A,B,F> as futures::future::Future>::poll
  22: <hyper::proto::h1::dispatch::Server<S> as hyper::proto::h1::dispatch::Dispatch>::poll_msg
  23: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
  24: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as futures::future::Future>::poll
  25: <hyper::server::conn::spawn_all::NewSvcTask<I,N,S,E,W> as futures::future::Future>::poll
  26: futures::task_impl::std::set
  27: tokio_threadpool::task::Task::run
  28: tokio_threadpool::worker::Worker::run_task
  29: tokio_threadpool::worker::Worker::run
  30: tokio_reactor::with_default
  31: tokio::runtime::builder::Builder::build::{{closure}}
  32: std::thread::local::LocalKey<T>::with
  33: std::thread::local::LocalKey<T>::with
  34: std::sys_common::backtrace::__rust_begin_short_backtrace
  35: core::ops::function::FnOnce::call_once{{vtable.shim}}
  36: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/alloc/src/boxed.rs:1636:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/alloc/src/boxed.rs:1636:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/sys/unix/thread.rs:106:17
  37: start_thread
  38: clone
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