-
Notifications
You must be signed in to change notification settings - Fork 238
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
fix bad error-messaging #2437
fix bad error-messaging #2437
Conversation
✅ Deploy Preview for specter-desktop-docs canceled.
|
@k9ert can we remove these console.logs in this PR before the release: specter-desktop/src/cryptoadvance/specter/templates/includes/hwi/components/wallet.jinja Line 51 in 714a8ae
especially the console log of the PSBT should be removed, what do you think? |
@k9ert do we perhaps have to parse the JSON string into a dictionary correctly? We should in any case better check whether
|
Happy to remove them but they are not part of this PR so maybe we can do that in some other PR. |
Can't reproduce the "TypeError: string indices must be integers" issue. But i implemented your proposal anyway here: |
I could broadcast with Spectrum and 1 sat fee on testnet without error now (might be that we are catching it now gracefully, which might be fine since it aligns with bitcoind). |
In the case of using spectrum, errors which came from the electrum server, did not got shown very well to the user.
In one case we had
This is caused by the server not returning json which in turn is caused by the client not adding "Accept:application/json" to the header. Also the errorClass translation from electrum -> spectrum -> specter-ext -> specter -> user was quite improvable.