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

JSON parse error #6

Open
simoitprojects opened this issue Dec 15, 2017 · 0 comments
Open

JSON parse error #6

simoitprojects opened this issue Dec 15, 2017 · 0 comments

Comments

@simoitprojects
Copy link

Hi

Great lib most of commands work flawlessly
I seem to get an JSON parsing error for getnetworkinfo command (other commands pass)
LOG
*** getnetworkinfo ***
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Failed to issue JSON-RPC request.
Data:
URL: http://192.168.0.1:5000/
JSON: {"method":"getnetworkinfo","params":[],"chain_name":"test","chain_key":null,"int":0} ---> System.InvalidOperationException: Failed to deserialize JSON.
JSON: {"result":{"version":100000,"subversion":"/MultiChain:0.1.0.9/","protocolversion":70002,"localservices":"0000000000000001","timeoffset":0,"connections":0,"networks":[{"name":"ipv4","limited":false,"reachable":true,"proxy":""},{"name":"ipv6","limited":false,"reachable":true,"proxy":""},{"name":"onion","limited":false,"reachable":false,"proxy":""}],"relayfee":0.00000000,"localaddresses":[{"address":"10.0.75.1","port":4335,"score":1},{"address":"10.20.30.142","port":4335,"score":1},{"address":"192.168.0.1","port":4335,"score":1},{"address":"192.168.177.1","port":4335,"score":1},{"address":"fe80::1069:dbb2:ab24:622b","port":4335,"score":1},{"address":"fe80::2167:9352:e18d:2531","port":4335,"score":1},{"address":"fe80::9565:170:b63d:b8e7","port":4335,"score":1},{"address":"fe80::b512:932c:4df2:aa44","port":4335,"score":1}]},"error":null,"id":null}
---> Newtonsoft.Json.JsonReaderException: Error reading string. Unexpected token: StartObject. Path 'result.localaddresses[0]', line 1, position 390.

It's strange because the JSON in the result actually passes validation

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