Skip to content

Commit

Permalink
[FAB-5178] deliver envelope get 503 error
Browse files Browse the repository at this point in the history
Change-Id: I3a37f7c9c56022bf41744692d30ddb763fa6e41f
Signed-off-by: liuwenliang0632@qq.com <liuwenliang0632@qq.com>
  • Loading branch information
liuwenliang0632 committed Jul 14, 2017
1 parent e976abd commit 9d8e225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/hyperledger/fabric/sdk/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ private Block getGenesisBlock(Orderer order) throws TransactionException {

DeliverResponse status = deliver[0];
logger.debug(format("Channel %s getGenesisBlock deliver status: %d", name, status.getStatusValue()));
if (status.getStatusValue() == 404) {
if (status.getStatusValue() == 404 || status.getStatusValue() == 503) {
logger.warn(format("Bad deliver expected status 200 got %d, Channel %s", status.getStatusValue(), name));
// keep trying...
} else if (status.getStatusValue() != 200) {
Expand Down

0 comments on commit 9d8e225

Please sign in to comment.