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
20.1 cli_wallet error - boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> #3468
Comments
I have the same issue trying to connect wallet to my local node:
|
|
Has this been fixed? Now that the HF21 date is over, I can't run the old version of cli_wallet anymore. |
@VIM-Arcange I looked into the suggestion from @abitmore above. There are two paths through the code which allow the RPC endpoint connections. One is To use the alternate version, change Once you do that, you will get a new error from whichever applications are connecting to the RPC endpoint: To fix that, you will need an additional parameter on the call to launch cli_wallet: The final version is:
changed to:
|
@TimCliff thank you for your answer. I know I can use HTTP instead of RPC, but this leads me to rewrite all my processes Do you know if RPC support will be definitively removed? |
I made a quick test with HTTP and it's OK but I need to specify multiple authorized IP addresses |
I haven't tried it, but here is the syntax for where it is loaded into the string vector:
|
I saw it but how to pass a
|
I finally found it when looking at the example provided in Boost documentation provided here. use |
👍 |
I think this issue should be kept open if it is planned to fix the WS error. |
I had the same problem with the websocket interface, and was forced to abandon it and use the http interface. If the websocket interface won't be fixed (and I don't need it, plain http is fine for me), I agree the option should be removed and docs fixed. The http interface wasn't usable out-of-the-box because I don't know the specific IP address for --- a/programs/cli_wallet/main.cpp
+++ b/programs/cli_wallet/main.cpp
@@ -247,8 +273,8 @@ int main( int argc, char** argv )
_http_server->on_request(
[&]( const fc::http::request& req, const fc::http::server::response& resp )
{
- auto itr = allowed_ip_set.find( fc::ip::endpoint::from_string(req.remote_endpoint).get_address() );
- if( itr == allowed_ip_set.end() ) {
+ if( allowed_ip_set.find( fc::ip::endpoint::from_string(req.remote_endpoint).get_address() ) == allowed_ip_set.end() &&
+ allowed_ip_set.find( fc::ip::address() ) == allowed_ip_set.end() ) {
elog("rejected connection from ${ip} because it isn't in allowed set ${s}", ("ip",req.remote_endpoint)("s",allowed_ip_set) );
resp.set_status( fc::http::reply::NotAuthorized );
return; |
After upgrading cli_wallet to 21.0 (non-mira), this command no longer works:
exec ./cli_wallet -s wss://gtg.steem.house:8090 -d --rpc-endpoint 127.0.0.1:8092
The exception it throws is:
The text was updated successfully, but these errors were encountered: