Error status in HLF sdk functions


Nikos Karamolegkos
 

Hello,

I am calling this function to join my peers to the channels. Sometimes I am getting the following error: INFO[0241] genesis block retrieval failed: Orderer Server Status Code: (503) SERVICE_UNAVAILABLE. Description: error status from ordering service

I am wondering if I can get the status/code of the error (i.e 503) somehow in order to repeat the process again? Because I have seen that if I wait some msec after orderer join and then call the previous function everything is ok

Thanks,

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Nikos Karamolegkos
 

Any ideas on that?