Hyperledger Composer CreatePeerCardAdmin выдает ошибку для распаковки - PullRequest
0 голосов
/ 18 ноября 2018

Я пытаюсь включить JWT для hyperledger composer в мой блокчейн-проект.

Однако, следуя инструкции , я столкнулся с приведенной ниже ошибкой.Я не уверен, что это значит:

Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html

при запуске ./createPeerAdminCard.sh ниже точный вывод:

Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is set to 'hlfv11'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Using composer-cli at v0.19.5

Successfully created business network card file to
        Output file: /tmp/PeerAdmin@hlfv1.card

Command succeeded


Successfully imported business network card
        Card file: /tmp/PeerAdmin@hlfv1.card
        Card name: PeerAdmin@hlfv1

Command succeeded

Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
Command failed

Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'

1 Ответ

0 голосов
/ 19 ноября 2018

Вы работаете на Mac?

Эта проблема наблюдалась, когда где-то в папке ~/.comoposer присутствует скрытый файл.

Если у вас есть карты, которые необходимо сохранить, попробуйте composer card export, чтобы попытаться экспортировать их, затем удалите папку ~/.composer и повторно запустите сценарий для создания карты Peer Admin.

В этой проблеме на github .

есть несколько деталей проблемы.
...