lexansoft / etherid.org

Ethereum ID Registar
Apache License 2.0
44 stars 16 forks source link

(BigNumber Error: new BigNumber() not a number: 0x) #4

Closed ligi closed 8 years ago

ligi commented 8 years ago

I am getting the following error when searching for a domain:

Web3 Error!

Cannot connect to the Ethereum network. Please install and run an Ethereum client. 
(BigNumber Error: new BigNumber() not a number: 0x)

the node is running - I see other things like my balance and get a different ( expected ) error than when the node is not running:

Web3 Error!

Cannot connect to the Ethereum network. Please install and run an Ethereum client. 
(Error: CONNECTION ERROR: Couldn't connect to node http://localhost:8545, is it running?)
lexansoft commented 8 years ago

FIxed. The problem was with searching for "0x". It was recognized as a hex number, but it has no actual digits. The fix now treats 0x as an ASCII string with hex value 0x3078

Note. The current mist version has a caching problem, so even if you refresh the webpage, it might still use the old one. Hopefully it will be fixed by mist team soon.

ligi commented 8 years ago

I am still experiencing the problem - not using mist - just a browser - there should be no caching problem here

lexansoft commented 8 years ago

What browser? On Jan 7, 2016 3:19 PM, "ligi" notifications@github.com wrote:

I am still experiencing the problem - not using mist - just a browser - there should be no caching problem here

— Reply to this email directly or view it on GitHub https://github.com/lexansoft/etherid.org/issues/4#issuecomment-169838181 .

ligi commented 8 years ago

tried it with cromium before.

But as you asked this I tried it with FireFox -> works , then tested with chromium again and now also the error does not appea anymore - perhaps the change was just not rolled out at this point in time?

lexansoft commented 8 years ago

Great.

Alexandre Naverniouk

On Thu, Jan 7, 2016 at 4:01 PM, ligi notifications@github.com wrote:

tried it with cromium before.

But as you asked this I tried it with FireFox -> works , then tested with chromium again and now also the error does not appea anymore - perhaps the change was just not rolled out at this point in time?

— Reply to this email directly or view it on GitHub https://github.com/lexansoft/etherid.org/issues/4#issuecomment-169845170 .

Velofisch commented 8 years ago

Hi, I keep getting the same error when I try to write a transaction. When calling the typed transactions from the JavaScript library - what is the correct type conversion? Should I rather adhere to the types of the methods of the contract or should I always try to convert into a hex string (with web3.fromAscII()) - as it had been the case before?

The error message is: "Error: new BigNumber() not a number: b". The stack is: raise() in web3.js:14248 another/parseNumeric</<() in web3.js:14236 BigNumber() in web3.js:13264 BigNumber() in web3.js:13274 require<[20]</toBigNumber() in web3.js:2235 require<[20]</toTwosComplement() in web3.js:2246 require<[9]</formatInputInt() in web3.js:949 require<[14]</SolidityType.prototype.encode() in web3.js:1597 require<[7]</SolidityCoder.prototype.encodeParams/encodeds<() in web3.js:706 map() in self-hosted:235 require<[7]</SolidityCoder.prototype.encodeParams() in web3.js:705 require<[31]</SolidityFunction.prototype.toPayload() in web3.js:3909 require<[31]</SolidityFunction.prototype.sendTransaction() in web3.js:3970 require<[31]</SolidityFunction.prototype.execute() in web3.js:4059 pledge() in pledge.html:129 onclick() in pledge.html:1

pledge.html is my file where I call the SolidityFunction

Thank you very much for your help!

cloxy commented 8 years ago

I am getting the same error on all browsers. Please help.

lexansoft commented 8 years ago
  1. You can pass BigNumber value.
  2. You can pass a hexadecimal string in format: 0x######. But, note that if you pass just 0x with no digits after the hex converter will fail.
  3. The best way to call the EtherId contract if through the etherid-js module. You can check the test html page there.

https://github.com/lexansoft/etherid-js

Alexandre Naverniouk

On Sun, Feb 7, 2016 at 2:56 AM, Vasil Toshkov notifications@github.com wrote:

I am getting the same error on all browsers. Please help.

— Reply to this email directly or view it on GitHub https://github.com/lexansoft/etherid.org/issues/4#issuecomment-180995114 .