Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SessionLogonResponseResult class deserialization exception when setAutoLogon == true #182

Copy link
Copy link
@lz-44

Description

@lz-44
Issue body actions

When using WebSocketClientConfiguration setAutoLogon == true, exception occurred:

c.b.c.c.c.w.adapter.ConnectionWrapper    : Exception while receiving message from WS connection

java.lang.IllegalArgumentException: Class com.binance.connector.client.common.websocket.dtos.SessionLogonResponseResult declares multiple JSON fields named 'apiKey'; conflict is caused by fields com.binance.connector.client.common.websocket.dtos.SessionLogonResponseResult#apiKey and com.binance.connector.client.common.websocket.dtos.BaseRequestDTO#apiKey

example:

public SpotWebSocketApi getSpotWebSocketApi() {
       SignatureConfiguration signatureConfiguration = new SignatureConfiguration();
       signatureConfiguration.setApiKey(properties.getApiKey());
       signatureConfiguration.setSecretKey(properties.getApiSecret());
       WebSocketClientConfiguration config = SpotWebSocketApiUtil.getClientConfiguration();

       config.setAutoLogon(true);

       config.setSignatureConfiguration(signatureConfiguration);
       return new SpotWebSocketApi(config);
}

Indeed, SessionLogonResponseResult has field apiKey. The ancestor BaseRequestDTO has also apiKey field.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.