Unable to import / deploy business network to Composer Playground - hyperledger-composer

Using the guide on https://hyperledger.github.io/composer/installing/using-playground-locally.html
The shell script has downloaded Hyperledger Composer 0.8.0 and Fabric V1 Beta docker images.
When using the Playground on my browser I am unable to deploy/import any sample business network (tried marbles network).
With the error:
t: line 33 column 1, to line 36 column 2. Class TradeMarble is not declared as abstract. It must define an identifying field.
Error on Composer Playground
I know there is a newer version of Composer (0.8.1; with 0.9.0 coming really soon) and Fabric V1 RC1. Do I need to update Composer and Fabric runtime/images?

We are in the process of updating the samples to support Composer v0.9. When v0.9 is released the online Composer Playground will be updated and you will be able to import samples again.
Sorry for the inconvenience!

Related

Laravel Aws\Laravel\AwsServiceProvider::class Not found

I want to use AWS QLDB Client using aws sdk in laravel v7
I have followed all procedures written here.
I'm getting this error
Aws\Laravel\AwsServiceProvider::class Not found
Aws SDK PHP does not have a provider built in, it is for vanilla PHP. You will need to install the Laravel version of it, you can find the package on github.
composer require aws/aws-sdk-php-laravel

Getting error when import card to Hyperledger Composer

I get the following error when I try to import a card using composer-rest-server multiple mode.
First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."
It was working fine before. I tried with both composer versions, 0.19.16 and hlfv11, and 0.20 hlfv12 but I get the error.
Also when I want to Authenticate to the REST server by navigating to the value of the authPath property through http://localhost:3000/auth/github I get the following error in my terminal but it successfully backs to composer rest server. When it was working fine I did not get such an error.
"Browse your REST API at http://localhost:3000/explorer
Potential security alert: hidden/protected properties ["password","verificationToken"] are used in query."
The problem you are seeing is due to a dependency in the dependency tree of the composer rest server being broken recently and so any npm installs of composer-rest-server will experience this problem as it will pull in this broken dependency.
Composer 0.19.17 has fixed this problem (and it will also be fixed in 0.20.3 when it is released). You can either move to these versions or you can use the docker image of composer rest server which has already downloaded the dependencies and doesn't include the broken dependency.

How is Hyperledger Composer REST server being updated after changing the blockchain model?

I followed the instructions https://ibm-blockchain.github.io/interacting/
I saw the APIs on Hyperledger Composer REST server.
I then updated the model, script and ACL. The Deployment was successful, but the APIs were still the same, so I ran this script again - no change:
./create/create_composer-rest-server.sh --business-network-card admin#perishable-network

hyperledger composer existing network install

composer version v0.19.10
Fabric version 1.1
21 nodes:
3 CLI
3 CA
3 orders
3 www
3 api
6 peers
channel name: common
My fabric network is up and running and I can commit a transaction. But I am trying to add composer playground into the mix. If I try a default install it fails because it wants to use composerchannel. My question is. Is there an way to install composer to an existing fabric deployment.
The Composer Playground uses Business Connection Cards that it finds on your local file system. By default these are under a folder under your home folder e.g. ~/.composer (Maybe you have created a standard PeerAdmin card for a standard 1 peer Development Fabric? )
If you have already connected to the Fabric with Composer, you will have some cards that you already use to commit a transaction. If you have separate machines you can use composer card export on the original machine and composer card import on the machine running Playground.
If you have not connected to the Fabric yet using Composer you might like to look at the Composer Tutorial for MultiOrg which goes through creating cards to connect Composer to the Fabric - it is not your exact scenario, but should provide enough information for you to move forward.
To answer the channel question, one of the files in the "Card" is a connection.json file and in that file the channel to use is specified. (By default composer uses a channel called composerchannel)

How to check blockchain in Hyperledger Composer

I'm try to learn a Hyperledger Composer.
now, Hyperledger Composer's sample test is working.
How to check blockchain in Hyperledger Composer?, have a some visual tool?
Composer is a development framework and suite of tools that is oriented towards accelerating the ability to write blockchain applications as a developer primarily. It simplifies and expedites the creation of blockchain applications. If you're new to Blockchain, Hyperledger Fabric or Hyperledger Composer, we recommend that you start with the tutorials like the Developer tutorial at the Hyperledger Composer website.
The present Hyperledger Explorer (shows blocks as they're added etc) is being updated to work with v1 of Hyperledger Fabric I understand https://github.com/hyperledger/blockchain-explorer
You therefore don't use composer tools or APIs to get a list of blocks - you need Fabric SDK REST APIs for that. This can help you -> https://github.com/hyperledger/fabric-sdk-rest - some parts are work in progress. But the salient point is the chaincode ID is the business network ID, where deployed Composer business networks are concerned. eg.
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9982c1c7e84b dev-peer0.org1.example.com-vehicle-lifecycle-network-0.11.3 "chaincode -peer.a. " etc etc
You can see every step what composer is doing in the logs. Command is => "docker logs ". you will get container name using "docker ps -a" command(orderer plays an important role).

Resources