-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[NEO3] there is not JSON Format error show when protocol.json is with json format error #1412
Comments
The problem is with plugins, right? with protocol I can see the json error |
@shargon the message shows as below, from the message we thought it was plugins problem. while in fact, there is only protocol.json format error. when i correct it, there is no error message show.
|
@shargon Yes, your right. different plugins combinations with different error message.
only with LevelDBStore plugins
with LevelDBStore and SystemLog plugins
|
@shargon do you mean that plugins such as LevelDBStore or SystemLog should capture the exception and hanlde it, for example show it on the command line? |
With an invalid JSon for
Which json did you use? |
@shargon protocol.json as below, lack of "}" in the last line. and also I used the LevelDBStore build with latest neo(ab4830c #1403 )
|
Closed because the fix (#1426) was closed |
Describe the bug
when start a neo-cli, I delete a "}" in the last line of the protocol.json by mistake, and unaware of it. then start neo-cli, it shows "Object reference not set to an instance of an object" error, with all the error messages, i can not get the information of the json error.
If config.json is with format error, there shows "Can not parse json", which is expected.
To Reproduce
Steps to reproduce the behavior:
neo-cli: master 51cd29fbe21abb9e1f17f64e5c6d21bc7decbbb9
neo: master ab4830c
neo-vm: master be2ac36bf35a3033d828e0ba0630d390599c487d
MillisecondsPerBlock is 15000.
Expected behavior
![039650e3bd6792038cf906bfa562782](https://user-images.githubusercontent.com/34291844/72418900-b21c5c00-37b6-11ea-82e6-bd34345fe65a.png)
here is error message of neo-cli 2.10.3 for reference.
Screenshots
![ee2798aca4644e2f446ee547b3794b7](https://user-images.githubusercontent.com/34291844/72418952-cc563a00-37b6-11ea-9ed1-8b47d754d591.png)
![e620bbb5d4f4037f78b2e279e8e948b](https://user-images.githubusercontent.com/34291844/72418956-d0825780-37b6-11ea-9f94-61de2872bc53.png)
Platform:
The text was updated successfully, but these errors were encountered: