1
우분투 서버에서 Hyperledger fabric ver1의 Balance transfer example을 실행 중입니다. Node.js에 4000 포트가 노출되었으며 POSTMAN 도구로 API를 테스트하려고했습니다. 각 요청 (POST 또는 GET)를 위해 나는 같은 오류가 받고 있어요 :Hyperledger 패브릭 v1의 우편 배달부를 통해 node.js express API를 연결하는 중에 UnauthorizedError가 발생했습니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>UnauthorizedError: No authorization token was found
<br> at middleware (/usr/src/app/node_modules/express-jwt/lib/index.js:76:21)
<br> at /usr/src/app/node_modules/express-unless/index.js:47:5
<br> at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
<br> at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13)
<br> at /usr/src/app/node_modules/express/lib/router/index.js:284:7
<br> at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12)
<br> at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10)
<br> at urlencodedParser (/usr/src/app/node_modules/body-parser/lib/types/urlencoded.js:82:7)
<br> at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
<br> at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13)
</pre>
</body>
</html>
내 생각은 JWT-명시 라이브러리를 구성하는 데 필요한 무언가가 있다는 것입니다. 어떤 제안?