-
Notifications
You must be signed in to change notification settings - Fork 4
Testing Errors #8
Comments
This aspect seemed to be working fine in the basic tests we ran. Any specific instance where you witnessed this behavior? |
Nothing special. I'm simply trying to create a wallet. |
abhishek0405/joinmarket-clientserver@89f9571 |
I pulled the latest commit (f8bb12a4421cd5114d4fdd4d7cba133f316ca118) When I create a wallet, I don't see the "Lost Connection" error anymore but I get the "Unexpected Error. Please Try again". The backend throws the following error: File "jmwalletd.py", line 397, in createwallet I can see the wallet created successfully when I click on "show wallets" but I'm unable to open/unlock it. |
Uninstall the |
Thanks for solving it so quickly! The "create wallet" step works fine now. I have found three new issues:
|
I introduced this error yesterday, sorry. We never insisted on a specific file extension for joinmarket wallet files, |
If we are reading only jmdat files in the "display" wallet page, we should also add code to create wallets with that extension even when the user doesn't specify that. Moreover, I didn't mean to restrict the filename convention, I just wanted the code to ignore the lock files (like .test.lock) while accepting other file extensions. |
Agreed (though it's a bit incomplete; code must apply also to command line and Qt gui; and people can rename files. Only full solution is as per the
Only not showing |
About:
My comment is: I think the method of display is causing the functional issue here, if that makes any sense. I think the logical thing is to show all the |
Yes I had noticed this, the behaviour is mainly because we haven't added a state verification in the client side while clicking this open button.I tried it once but was getting some other errors (maybe some bug while implementing,will look into it again). Anyways I feel adding the state verification in our React App should fix this. |
This is a viable solution as well, we felt that providing individual controls for each wallet could give a better interface. One slight improvement to the current implementation could be that we highlight the current wallet loaded(different background for example) to make it clearer for users. |
If I start the maker service with no coins, the backend crashes. The frontend should ideally convey the error message (do not have any coins left) and go back to display wallet page. |
Hi, (You will need commit JoinMarket-Org/joinmarket-clientserver@4ca735d or later from the Python backend code branch JoinMarket-Org/joinmarket-clientserver#996 , else it won't work). Basically, we now poll (though at some point we will subscribe instead), every second, the backend for the latest state. Now, when you try to start the maker service with an empty wallet it will say "please check the status bar for updates" (and the backend will not crash), and you will see that the "Yg (yield generator)" does not go into a "true" state (while it does, in the case of a funded wallet. While these updates are imo a good solution for this general issue (making sure the client has an up to date record of what is happening), there are two immediate things to address still:
|
Thanks for your commit. The status bar is quite useful. Edit: I restarted the backend and it fixed the issue. |
Yeah. I think there are situations where when the backend is not restarted, the frontend does not realize anything is wrong. Restarting fixes it but we need better info. There are still a number of corner cases like this, feel free to keep adding any more specific cases you come across, thanks. |
8f26259 moves the status message to text in the navbar so it's always visible; not amazing but a reasonable start. The big thing now is to have the wallets as a component that can be easily selected from and then "unlock" auto-displays. After that's done, probably switch the modal dialogs from bare alerts to react-bootstrap style alerts and/or input boxes. If anyone else wants to work on that let us know. For myself I'd just like to see it in a "reasonably functional" state so that it can work for testing the backend. Professionals can make it actually good, later :) |
See new API docs as per JoinMarket-Org/joinmarket-clientserver@b527bbb ; code here will need to be updated for API changes. |
I get a prompt with
Lost connection to backend! Please restart the backend server.
even when the backend server is running and receiving API calls from the frontend port.I don't see the error message on the terminal running the frontend.
The text was updated successfully, but these errors were encountered: