-
Notifications
You must be signed in to change notification settings - Fork 360
getting issue while running node Query.js #120
Comments
the user credentials are invalid
…On Thu, 27 Dec 2018, 21:40 potini3, ***@***.***> wrote:
I was getting error like this can any one help me this one is fabcar
Store path:C:\Users\admin\fabric-samples\fabcar\hfc-key-store
(node:6016) DeprecationWarning: grpc.load: Use the @grpc/proto-loader
module with grpc.loadPackageDefinition
instead
Successfully loaded user1 from persistence
Query has completed, checking results
error from query = { Error: 2 UNKNOWN: access denied: channel [mychannel]
creator org [Org1MSP]
at Object.exports.createStatusError
(C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\common.js:87:15)
at Object.onReceiveStatus
(C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:1188:28)
at InterceptingListener._callNext
(C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus
(C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:614:8)
at callback
(C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:841:24)
code: 2,
metadata: Metadata { _internal_repr: {} },
details: 'access denied: channel [mychannel] creator org [Org1MSP]' }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#120>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdAWgW-ZEufgHBmkNK6bdnn3At55Vi8oks5u9QYHgaJpZM4ZjB0P>
.
|
Hi Vishal, How do I ressolve it. I believe it is taking my credentials from hfc-key-store directly. These values are created when I run registerUser.js |
make sure that your connection profile client org is same user belongs to
…On Thu, 27 Dec 2018, 22:47 potini3, ***@***.***> wrote:
Hi Vishal,
How do I ressolve it. I believe it is taking my credentials from
hfc-key-store directly. These values are created when I run registerUser.js
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdAWgcuw4_vt95iVL_uoVvKWhFKyphehks5u9RXHgaJpZM4ZjB0P>
.
|
Today I deleted my hfc-key-store and restarted the fabric ./startfabric.sh and I got this error in the end of the Script But I proceed to ./startfabric.sh node PS C:\Users\admin\fabric-samples\fabcar> node Query.js and also when I proceed to node invoke.js I am getting the error below PS C:\Users\admin\fabric-samples\fabcar> node invoke.js |
I was getting error like this can any one help me this one is fabcar
Store path:C:\Users\admin\fabric-samples\fabcar\hfc-key-store
(node:6016) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition
instead
Successfully loaded user1 from persistence
Query has completed, checking results
error from query = { Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]
at Object.exports.createStatusError (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\common.js:87:15)
at Object.onReceiveStatus (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:1188:28)
at InterceptingListener._callNext (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:614:8)
at callback (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:841:24)
code: 2,
metadata: Metadata { _internal_repr: {} },
details: 'access denied: channel [mychannel] creator org [Org1MSP]' }
The text was updated successfully, but these errors were encountered: