Skip to content

Improve error message from ironoxide init timeout #275

@BobWall23

Description

@BobWall23

@cjyar commented on Thu Jun 16 2022

As a naive user, who may not remember how the TSP works, I want a clear error message that tells me what the problem is if ironoxde can't be initialized.

The current error message is:

thread 'main' panicked at 'Startup failed: failed to initialize the IronCore SDK with the provided credentials. Operation 'InitializeSdk' timed out after 30000ms', src/util/serde.rs:13:19

AC:

  • If the cause of the error comes from a network connection, the error message should say what it was trying to connect to, and give as much information about why it failed as we have.

@BobWall23 commented on Wed Jun 29 2022

If we added a timeout on the request that was shorter than 30 sec, we would get the error from the reqwest client instead of the generic timeout error, and could propagate that up.

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