在运行Rest Api服务器时收到以下错误

时间:2018-10-04 12:45:09

标签: blockchain

当我运行composer-rest-composer命令时,一切都在构建,但是当我打开浏览器时,出现以下错误。

  

{“错误”:{“状态代码”:404,“名称”:“错误”,“消息”:“无法获取   / explorer /“,”状态“:404,”堆栈“:”错误:无法在以下位置获取/ explorer / \ n   raiseUrlNotFoundError   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/loopback/server/middleware/url-not-found.js:21:17)\n   在Layer.handle [作为handle_request]   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)\n   在trim_prefix   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)\n   在   /home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7\n   在Function.process_params   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)\n   在下一个   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)\n   在   /home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:635:15\n   在下一个   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:260:14)\n   在Function.handle   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:174:3)\n   在路由器   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:47:12)\n   在Layer.handle [作为handle_request]   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/layer.js:95:5)\n   在trim_prefix   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:317:13)\n   在   /home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:284:7\n   在Function.process_params   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:335:12)\n   在下一个   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/express/lib/router/index.js:275:10)\n   在urlencodedParser   (/home/santosh/.nvm/versions/node/v8.12.0/lib/node_modules/composer-rest-server/node_modules/body-parser/lib/types/urlencoded.js:91:7)"}}

0 个答案:

没有答案