Skip to content

Allow seamless re-connection to sleeping Trezor #2877

Open
@smk762

Description

@smk762

Another error seen in logs after leaving session running while tending to the hounds:

{
    "mmrpc": "2.0",
    "error": "Initialization task has timed out 300s",
    "error_path": "lib.common_impl.coin_balance.mod.pubkey.trezor_rpc_task.handle",
    "error_type": "TaskTimedOut",
    "error_data": {
        "duration": {
            "secs": 300,
            "nanos": 0
        }
    },
    "error_trace": "lib:104] common_impl:66] coin_balance:493] mod:417] pubkey:154] trezor_rpc_task:69] handle:54]",
    "object": {
        "mmrpc": "2.0",
        "result": {
            "status": "Error",
            "details": {
                "error": "Initialization task has timed out 300s",
                "error_path": "lib.common_impl.coin_balance.mod.pubkey.trezor_rpc_task.handle",
                "error_trace": "lib:104] common_impl:66] coin_balance:493] mod:417] pubkey:154] trezor_rpc_task:69] handle:54]",
                "error_type": "TaskTimedOut",
                "error_data": {
                    "duration": {
                        "secs": 300,
                        "nanos": 0
                    }
                }
            }
        },
        "id": null
    }
}

In this state, Trezor Model 1 is lit up with numeric grid, but no way to make input in gui (and model one only has 2 buttons, so cant do on device). Forced to restart device and app to continue. If possible, the ability to "restore session" would be nice, if https://c774543c.komodo-docs.pages.dev/en/docs/komodo-defi-framework/api/v20/utils/trezor_connection_status/ indicates the connection was lost.

Originally posted by @smk762 in #2836 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions