question

RachitGaur-0297 avatar image
0 Votes"
RachitGaur-0297 asked MikeUrnun answered

Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException on Rety

I have created one azure function using Node and I have implemented retry in that. To achieve this I am not handling the exception in catch and throwing the exception. In that case retry is working but its giving RpcException (Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException). May I know what wrong I am doing or how can I handle this exception in retry flow?

host.json
"retry": {
"strategy": "exponentialBackoff",
"maxRetryCount": 3,
"minimumInterval": "00:00:10",
"maximumInterval": "00:01:00"
}

handling error
catch (error) {
const { retryContext } = context.executionContext;
if(retryContext.retryCount >= retryContext.maxRetryCount){
return handleErrorResponse(context, error)
}
throw error;
}


if the retry count is less then maxRetryCount (3 in my case). its going for retry but giving exception as well.

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MikeUrnun avatar image
0 Votes"
MikeUrnun answered

Hello @RachitGaur-0297 - Apologies for the late response. RpcException is quite a generic error and I believe there may be an underlying issue:

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.