10 书已买,江湖救急blockchain-explorer运行报错,劳烦帮忙指正

1、blockchain-explorer 版本信息

root@hu-fabric:/opt/gopath/src/github.com/hyperledger/blockchain-explorer# git branch -a

master

  remotes/origin/HEAD -> origin/master

  remotes/origin/development

  remotes/origin/discovery

  remotes/origin/master

  remotes/origin/react

  remotes/origin/reactbranch

  remotes/origin/rearchitects-react

  remotes/origin/reducks

  remotes/origin/release-3

  remotes/origin/release-3.1

  remotes/origin/release-3.2

  remotes/origin/release-3.3

  remotes/origin/release-3.4

  remotes/origin/release-3.5


2、fabric 版本号

root@hu-fabric:/opt/gopath/src/github.com/hyperledger/fabric# git branch -a

  * release-1.2


3、node 版本信息

root@hu-fabric:/opt/gopath/src/github.com/hyperledger/blockchain-explorer# node -v

v8.11.3


4、系统和内核版本信息

root@hu-fabric:/opt/gopath/src/github.com/hyperledger/blockchain-explorer# uname -a

Linux hu-fabric 4.8.0-34-generic #36-Ubuntu SMP Wed Dec 21 17:24:18 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


5、运行报错

root@hu-fabric:/opt/gopath/src/github.com/hyperledger/blockchain-explorer# node main.js 

postgres://hppoc:password@127.0.0.1:5432/fabricexplorer

(node:12166) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined

    at Platform.setChannels (/opt/gopath/src/github.com/hyperledger/blockchain-explorer/app/platform/fabric/Platform.js:188:26)

    at <anonymous>

    at process._tickCallback (internal/process/next_tick.js:188:7)

(node:12166) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)


(node:12166) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


请先 登录 后评论

1 个回答

冯翔 - 高级系统架构师

把你的配置文件展示一下!

请先 登录 后评论
  • 3 关注
  • 0 收藏,1312 浏览
  • 提出于 2018-07-14 13:13

相似问题