启动REST服务器的问题是,启动composer-rest-server composer版本时出错的是v0.20.9 composer-rest服务器版本v0.19.20。
这是日志:
nithin@:~/fabric-tools/fabric-dev-servers$ composer-rest-server
? Enter the name of the business network card to use: admin@test-bna
? Specify if you want namespaces in the generated REST
在智能合约中,我添加了一些检查,例如:
// Check if user owns the property
if(submittedOwnerId !== actualOwnerId){
// If they are not the owner, give error and quit
throw new Error('You do not own this property');
}
在Composer Playground中,错误返回如下:
Error: You do not own this property
但是在composer
我已经从azure Ubuntu服务器创建了一个Hyperledger Composer-rest服务器。我试图将它连接到amazon服务器,我已经成功地连接了它们。唯一的问题是我不能从amazon端安装composer-rest服务器,也不能从amazon端安装名片。所以我从蔚蓝那边打开了作曲家-休息服务器。但过了一段时间,服务器将不再提供数据。它会给错误超时,看起来就像
Generated schemas for all types in business network definition
Adding schemas for all types to Loopback ...
A
我的logic.js文件中有一个函数,它从api检索平面的纬度和经度:
function getLocation(){
var url = 'https://opensky-network.org/api/states/all?time=1458564121&icao24=3c6444'
return fetch(url) // Call the fetch function passing the url of the API as a parameter
.then(function(resp){
我做了一个Hyperledger作曲家网络。我想看到我的函数有一个查询代码。
例如,我的函数的内容是
/**
* @param {hansung.ac.kr.transaction.selectUserByCertificateName} tx - the member to be processed
* @transaction
*/
function selectUserByCertificateName (tx) {
var idList = [];
query("selectCertificateByName" , {targetName: tx.c
我正在学习GraphQL,即将完成教程,这是以前从未发生过的。 问题是,在浏览器中打开GraphQL游乐场之后,即使没有进行查询或突变,GraphQL服务器也会继续接收请求。 我看到服务器返回以下类型的响应: {
"name":"deprecated",
"description":"Marks an element of a GraphQL schema as no longer supported.",
"locations":[
"FIELD_DEFINITION
我正在尝试按照上的说明在我的Mac电脑上本地安装Hyperledger。在启动web应用程序的最后一步("Playground")中,当我运行以下命令时:
composer-playground
显示
-bash: composer-playground: command not found
如何运行“作曲家游乐场”?
我想更改composer-rest-服务器的端口,我使用的是-p标志,如帮助所示
但是终端显示我缺少一个参数。
输入
composer-rest-server -p 8919
输出
Missing parameter. Please run composer-rest-server -h to see usage details
当我键入-h标志时:
-p, --port The port to serve the REST API on [number]
那么,如何在与3000不同的端口上运行composer-rest-server呢?
在我的bc中有两个通道,我在每个通道中部署了网络,在一个通道中,我启动了一个名为'compound-network'的网络,并且有一个名为compound的共享,属性是:
asset Compound identified by compoundId {
o String compoundId
o String name
o String smiles
o String source
o String location
--> CompoundParticipant owner
}
composer-rest显示:
但是,当我添加属性cas时
是否有描述PostgreSQL服务器遵循的元组格式的文档?官方文件似乎对此很神秘。
单个元组看起来很简单,可以找出,但是当涉及到元组数组、复合元组数组和最终嵌套的复合元组数组时,仅仅通过查看输出就不可能确定格式。
在我最初尝试实现之后,我要求它能够在Node.js中解析PostgreSQL元组,这个解析器现在仍然缺失。
示例
create type type_A as (
a int,
b text
);
有一个简单的文本:(1,hello)
具有复杂文本:(1,"hello world!")
create type type_B as (
在浏览开发人员指南教程时,我一直收到“模块版本不匹配”的错误。我可以完成几乎所有的教程(创建和测试我的业务网络,将其部署到本地fabric,通过rest服务器与其交互),但在运行yeoman创建示例angular应用程序时出现错误...
~/git/my-test-network$ yo hyperledger-composer:angular
Welcome to the Hyperledger Composer Angular project generator
? Do you want to connect to a running Business Network? Yes
? Pr