Skip to content

CDP SDK returns ambiguous errors for failed operations instead of structured error details #526

@driver-bail

Description

@driver-bail

When a user operation fails (for example, attempting to open a position with insufficient collateral or submitting invalid parameters), the CDP SDK often returns a generic error message that lacks structured details. This makes it difficult for developers to programmatically determine the exact cause of the failure and provide useful UI feedback to end users.

Steps to reproduce:

  1. Set up a project that integrates the CDP SDK.
  2. Initialize the CDP client with valid credentials and configuration.
  3. Attempt a CDP operation that is expected to fail (e.g., open a CDP with collateral below the minimum requirement).
  4. Observe the error returned by the SDK (typically a generic message with little context).

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