【ERROR未解决】Error: Error trying to ping. Error: Composer runtime (0.20.8) is not compatible with clien

错误描述

想把改了的model在playground里面跑一跑,结果出错。
但是composer-rest-server没问题啊
报错信息:
Error: Error trying to ping. Error: Composer runtime (0.20.8) is not compatible with client (0.20.8-20190314170258)
哈?我什么都没做你突然就不兼容了……我就改了一下model……

???
重新导入card,报错:

Error: Error trying to ping. Error: transaction returned with failure: Error: The current identity, with the name 'admin' and the identifier '33c42c826c6f62d53543751238b6305a360e48aa51c3e4ee8f61cc0579c47443', has not been registered

???
composer-rest-server的新报错

Curl
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "$class": "org.sc.product.SampleTransaction", \ 
   "asset": "00001", \ 
   "newowner": "0002", \ 
   "newValue": "string", \ 
  \ 
 }' 'http://localhost:3000/api/SampleTransaction'
Request URL
http://localhost:3000/api/SampleTransaction
Response Body
{
  "error": {
    "statusCode": 400,
    "name": "SyntaxError",
    "message": "Unexpected token } in JSON at position 117",
    "body": "{\n  \"$class\": \"org.sc.product.SampleTransaction\",\n  \"asset\": \"00001\",\n  \"newowner\": \"0002\",\n  \"newValue\": \"string\",\n\n}",
    "status": 400,
    "stack": "SyntaxError: Unexpected token } in JSON at position 117\n    at JSON.parse (<anonymous>)\n    at parse (/home/cielo/.nvm/versions/node/v8.15.1/lib/node_modules/composer-rest-server/node_modules/body-parser/lib/types/json.js:88:17)\n    at /home/cielo/.nvm/versions/node/v8.15.1/lib/node_modules/composer-rest-server/node_modules/body-parser/lib/read.js:116:18\n    at invokeCallback (/home/cielo/.nvm/versions/node/v8.15.1/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:262:16)\n    at done (/home/cielo/.nvm/versions/node/v8.15.1/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:251:7)\n    at IncomingMessage.onEnd (/home/cielo/.nvm/versions/node/v8.15.1/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:307:7)\n    at emitNone (events.js:111:20)\n    at IncomingMessage.emit (events.js:208:7)\n    at endReadableNT (_stream_readable.js:1064:12)\n    at _combinedTickCallback (internal/process/next_tick.js:139:11)\n    at process._tickCallback (internal/process/next_tick.js:181:9)"
  }
}
Response Code
400
Response Headers
{
  "date": "Tue, 07 May 2019 08:49:47 GMT",
  "content-encoding": "gzip",
  "x-content-type-options": "nosniff",
  "x-download-options": "noopen",
  "x-frame-options": "DENY",
  "content-type": "application/json; charset=utf-8",
  "access-control-allow-origin": "http://localhost:3000",
  "transfer-encoding": "chunked",
  "connection": "keep-alive",
  "access-control-allow-credentials": "true",
  "vary": "Origin, Accept-Encoding",
  "x-xss-protection": "1; mode=block"
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值