hyperledger / hyperledger/fabric

Access Denied when querying ledger through REST API

Open
#3,527 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

I've created an API like the one in fabcar for a network of 2 orgs and 1 peer for each org, invoking chaincode and querying ledger worked well through CLI, but when running on localhost:8082, it gives the following error:

when discovery is true:
[DiscoveryService]: send[mychannel] - Channel:mychannel received discovery error:access denied
Failed to evaluate transaction: Error: DiscoveryService: mychannel error: access denied

when discovery is false:
2022-07-13T20:04:17.391Z - error: [Transaction]: Error: No valid responses from any peers. Errors:
Failed to evaluate transaction: Error: No valid responses from any peers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.