Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Error calling ReceiveOne() #174

Closed
jovillas opened this issue Jul 1, 2020 · 1 comment
Closed

Error calling ReceiveOne() #174

jovillas opened this issue Jul 1, 2020 · 1 comment

Comments

@jovillas
Copy link

jovillas commented Jul 1, 2020

I'm receiving an error from ReceiveOne() function that just forwards what appears to be a server-side error or an amqp dependency error back to the user. The error clearly ask to retry.

Error{Condition: amqp:internal-error, Description: The service was unable to process the request; please retry the operation. For more information on exception types and proper exception handling, please refer to http://go.microsoft.com/fwlink/?LinkId=761101 TrackingId:c0b7e7503450451bab1d89efb262461c_G13, SystemTracker:gateway5, Timestamp:2020-06-25T23:56:38, Info: map[]}

The only way for the user of azure-service-bus-go to handle this error and retry is to actually parse the error text. That is not a very useful API.

Can you either add a isRetriable(error) function or an error type we can check against to know if this error is retriable or should be handled as an unexpected error?

@richardpark-msft
Copy link
Member

Hi @jovillas,

We've moved development of this package to the azure-sdk-for-go repo link.

To your original request, it makes absolute sense. We have an issue to tackle exactly this in the new package: Azure/azure-sdk-for-go#15610.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants