KomodoPlatform / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
103 stars 94 forks source link

Unable to activate OSMO on latest dev #1673

Closed SirSevenG closed 1 year ago

SirSevenG commented 1 year ago

Describe the bug Original report https://github.com/KomodoPlatform/AtomicDEX-mobile/issues/1815

Please answer following questions and attach requested info - it'll help to solve issue faster

curl --url "http://127.0.0.1:7783" --data "{
    \"method\":\"enable_tendermint_with_assets\",
    \"mmrpc\":\"2.0\",
    \"params\": {
        \"ticker\":\"OSMO\",
        \"tokens_params\": [],
        \"rpc_urls\": [
            \"https://osmosis-mainnet-rpc.allthatnode.com:26657/\"
       ],
       \"tx_history\":true
    },
    \"userpass\":\"userpass\"
}"

response:

{"mmrpc":"2.0","error":"Error on platform coin OSMO creation: tendermint_coin:1868] serde parse error\n\nCaused by:\n    EOF while parsing a value at line 1 column 0\n\nLocation:\n    /Users/hetzner/.cargo/registry/src/github.com-1ecc6299db9ec823/flex-error-0.4.4/src/tracer_impl/eyre.rs:10:9","error_path":"platform_coin_with_tokens.tendermint_with_assets_activation","error_trace":"platform_coin_with_tokens:318] tendermint_with_assets_activation:191]","error_type":"PlatformCoinCreationError","error_data":{"ticker":"OSMO","error":"tendermint_coin:1868] serde parse error\n\nCaused by:\n    EOF while parsing a value at line 1 column 0\n\nLocation:\n    /Users/hetzner/.cargo/registry/src/github.com-1ecc6299db9ec823/flex-error-0.4.4/src/tracer_impl/eyre.rs:10:9"},"id":null}

mm2.log

onur-ozkan commented 1 year ago

I can't get the problem

2023-02-23_13-17

 ~/devspace/komodo/atomicDEX-API  dev $ git log -n 1
commit adde21b26cc9fdf2822f92a104c981e7f0c2a8e1 (HEAD -> dev, origin/dev)
Author: Samuel Onoja <samiodev@icloud.com>
Date:   Tue Feb 21 19:47:22 2023 +0100

    fix slp token activation (#1670)

    * fixes to SlpToken::on_disabled()

    Signed-off-by: borngraced <samiodev@icloud.com>

    * refactor on_disabled for Solana and Tendermint

    Signed-off-by: borngraced <samiodev@icloud.com>

    ---------

    Signed-off-by: borngraced <samiodev@icloud.com>
onur-ozkan commented 1 year ago

The issue is more related with the target node rather than mm2. Probably node had network issues during your tests. Try to input a not working url, you will see the exactly same error backtrace(err msg can be different)

SirSevenG commented 1 year ago

https://www.allthatnode.com/osmosis.dsrv

It does look like their RPC nodes has issue rn, again.

Thanks for checking it out, @ozkanonur !