Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

jigu.error.LcdInternalError: (500) invalid request: must contain at least one message: failed to simulate tx #11

Open
hanlsin opened this issue Dec 29, 2020 · 0 comments

Comments

@hanlsin
Copy link

hanlsin commented Dec 29, 2020

  • Jigu version: 0.1.4
  • Python version: 3.7
  • Operating System: Mac OS X

Description

_api_post("/txs/estimate_fee") returns the title error.

What I Did

terra = Terra("tequila-0004", "https://tequila-lcd.terra.dev")
...
send = MsgSend(from_address=wallet.address, to_address=to, amount=[Coin("uluna", 3000)])
# no error
fee = StdFee.make(gas=200_000, uluna=1_000_000)
tx = wallet.create_and_sign_tx(send, fee=fee)
# error
tx2 = wallet.create_and_sign_tx(send)

This is the stack trace:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/object_query/wallet.py", line 75, in create_and_sign_tx
    return self.sign_tx(self.create_tx(*msgs, fee=fee, memo=memo))
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/object_query/wallet.py", line 50, in create_tx
    fee = self.terra.tx.estimate_fee(tx)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/api/tx.py", line 79, in estimate_fee
    res = self._api_post("/txs/estimate_fee", data=data)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/api/__init__.py", line 79, in _api_post
    return self._handle_response(self.terra.lcd.post(path, **kwargs), unwrap)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/lcdclient.py", line 111, in post
    return self._request("post", path, **kwargs)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/lcdclient.py", line 88, in _request
    return self.handle_response(response)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/lcdclient.py", line 82, in handle_response
    r = resp_m(self, r)
  File "/Users/yp/bin/miniconda3/envs/bcbank/lib/python3.7/site-packages/jigu/client/lcd/middlewares.py", line 87, in handle_general_errors
    raise LcdInternalError(response.status_code, error_msg, response.request)
jigu.error.LcdInternalError: (500) invalid request: must contain at least one message: failed to simulate tx
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant