Giter Site home page Giter Site logo

Comments (9)

SomberNight avatar SomberNight commented on May 24, 2024

electrum getconfig rpcuser - it returned empty
electrum getconfig rpcpassword - it returned empty

Note that this is due to this known bug: spesmilo/electrum#2592.
Command line return values basically do not work with the Windows binaries.

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

But after setting rpcuser and rpcpassword and trying with that it should work....right?

I set rpcuser, rpcpassword and restarted the daemon

electrum setconfig rpcuser dummy
electrum setconfig rpcpassword dummy123$

now tried to connect with new set login/password, still it returns same error

Error code: 401
Message: Authentication failed (missing credentials).
Error code explanation: 401 - No permission -- see authorization schemes.

from electrum-docs.

SomberNight avatar SomberNight commented on May 24, 2024

Yes, it should work.
Are you sure the basic auth details are included in the request?
What is the full URL you are testing with?

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

I am using postman to test it first.

  1. Using authorization tab in postman to set login / password in request.
  2. Raw body to send with {"jsonrpc":"2.0","id":"curltext","method":"getbalance","params":[]}
  3. Url is set to "http://localhost:7777"

In response, I am getting above mentioned error.

You can have a look at uploaded confirguration screenshots at https://drive.google.com/open?id=1hs8GjjYWChh776NZAETZ8nfeSPAdhL28

from electrum-docs.

SomberNight avatar SomberNight commented on May 24, 2024

I have never used postman. Can you try with an URL that contains the basic auth details in it directly, as in the docs? E.g.:
http://username:[email protected]:7777

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

I am getting same error

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

Please help....I am stuck

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

Previously request was not going through as "sending username:pasword in url capability was removed from Chrome 19+" and I was using chrome.

Now I tried with postman.

I am able to send request to electrum server now, but getting following error now:

{
"id": "curltext",
"jsonrpc": "2.0",
"error": {
"code": -32603,
"message": "Server error: File "electrum\commands.py", line 93, in func_wrapper | Exception: wallet not loaded. Use 'electrum daemon load_wallet'\n"
}
}

I tried running mentioned command "electrum daemon load_wallet" as well, but still getting same error.

from electrum-docs.

SnpGroup avatar SnpGroup commented on May 24, 2024

you can close this issue now.

I have used this method to load wallet and things are working now for me

curl --data-binary '{"id":"curltext","method":"daemon","params":{"config_options":{"subcommand":"load_wallet", "wallet_path":"/home/user/.electrum/testnet/wallets/default_wallet", "password":"1234"}}}' http://user:[email protected]:7777

from electrum-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.