Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Error Input byte array has incorrect ending byte at 1748 #41

@Steampunk1453

Description

@Steampunk1453

We are using the SDK to connect to Amazon Managed Blockchain but the following error occurs:

java.lang.Exception: java.lang.IllegalArgumentException: Input byte array has incorrect ending byte at 1748
at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4140)
at org.hyperledger.fabric.sdk.Channel.getConfigBlock(Channel.java:858)
at org.hyperledger.fabric.sdk.Channel.parseConfigBlock(Channel.java:1781)
at org.hyperledger.fabric.sdk.Channel.loadCACertificates(Channel.java:1618)
at org.hyperledger.fabric.sdk.Channel.initialize(Channel.java:1107)
atcom.transfesa.traceability.providers.DefaultChannelProvider.getLogisticChannelClient(DefaultChannelProvider.java:81)
at com.transfesa.traceability.services.ChannelService.getChainInfo(ChannelService.java:99)
at com.transfesa.traceability.controllers.ChainInfoController.getChainInfo(ChainInfoController.java:25)

We think that the error is because the certificate file supplied by Amazon (managedblockchain-tls-chain.pem) has two certificates when the normal is one. But this is a file supplied by Amazon.

Is it possible that the SDK is not able to handle a file with two certificates and needs only one?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions