You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
Hey,
Trying to follow the getting started instructions and send some Lunas across Tequila-0004.
When trying to send a transaction that encounters an error, it is not parsed properly, yielding a json.decoder.JSONDecodeError.
In jigu/client/lcd/api/tx.py:120 (json.loads(res["raw_log"])), the assumption, that raw_log is a valid JSON does not hold true. These two examples show what res contained for two different errors, in which the raw_log isn't a valid JSON.
I'm not sure whether this is a jigu issue, or a bad response returned by the server-side.
This happens for two errors I was able to generate:
Out of gas: {'height': '0', 'txhash': 'A1D2D6DA98C0192A2F559BA51E40F2CA90F4E8354AFD6C96B4F2E919B388D6B1', 'codespace': 'sdk', 'code': 11, 'raw_log': 'out of gas: out of gas in location: WriteFlat; gasWanted: 50000, gasUsed: 51899', 'gas_wanted': '50000', 'gas_used': '51899'}
@ouiliame@etienne-napoleone, I'm running into the same issue at res = wallet_a.broadcast(tx): JSONDecodeError("Expecting value", s, err.value) from None
I 100xed the gas and fees, so I'm pretty sure I'm not running into an "Out of gas" or "insuffecient fees" issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Hey,
Trying to follow the getting started instructions and send some Lunas across Tequila-0004.
When trying to send a transaction that encounters an error, it is not parsed properly, yielding a
json.decoder.JSONDecodeError
.In jigu/client/lcd/api/tx.py:120 (
json.loads(res["raw_log"])
), the assumption, thatraw_log
is a valid JSON does not hold true. These two examples show whatres
contained for two different errors, in which theraw_log
isn't a valid JSON.I'm not sure whether this is a jigu issue, or a bad response returned by the server-side.
This happens for two errors I was able to generate:
{'height': '0', 'txhash': 'A1D2D6DA98C0192A2F559BA51E40F2CA90F4E8354AFD6C96B4F2E919B388D6B1', 'codespace': 'sdk', 'code': 11, 'raw_log': 'out of gas: out of gas in location: WriteFlat; gasWanted: 50000, gasUsed: 51899', 'gas_wanted': '50000', 'gas_used': '51899'}
{'height': '0', 'txhash': '150ABCFB784A5E2F68B5316AC1AD5AC490E16D3C952D90D6F172E45497E4A77D', 'codespace': 'sdk', 'code': 13, 'raw_log': 'insufficient fee: insufficient fees; got: "7500uluna", required: "9258600ukrw,7800uluna,22444547umnt,5294usdr,7800uusd" = "9258600ukrw,7800uluna,22444547umnt,5294usdr,7800uusd"(gas) +""(stability)', 'gas_wanted': '52000', 'gas_used': '1054'}
What I Did
Use the following snippet to reproduce:
Thanks!
The text was updated successfully, but these errors were encountered: