minghuaw / azeventhubs

Unofficial Azure Event Hubs SDK over AMQP 1.0 for rust
4 stars 2 forks source link

Cannot create either producer or consumer client with azure_identity `DefaultCredential` #30

Closed minghuaw closed 6 months ago

minghuaw commented 6 months ago

It was observed that creating new producer or consumer client using azure_identity::DefaultCredential would fail with the following error, but connecting using the connection string still works fine.

Error: Error { context: Custom(Custom { kind: Other, error: Status(StatusError { code: StatusCode(500), description: Some("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") }) }) }

The above error could result in an idling connection which could end up with another error

Error { condition: ConnectionError(ConnectionForced), description: Some("The connection was inactive for more than the allowed 60000 milliseconds and is closed by container 'LinkTracker'. TrackingId:, SystemTracker:gateway5, Timestamp:2024-01-08T15:05:08"), info: None }

While this problem was observed when upgrading the dependency azure_core to "0.19", I have experienced the same error with version "0.18" and the dotnet SDK on my local machine (mac) and an Azure VM. The dotnet SDK seems just hang forever and the message is never sent to the Event Hub.

minghuaw commented 6 months ago

This could be a problem with my Azure account, which I need to investigate further.

minghuaw commented 6 months ago

This problem seems to be gone on my local machine after I signed in again on Azure CLI

minghuaw commented 6 months ago

The problem seems to be gone on the testing Azure VM instance as well. This seems to be a service disruption rather than problem with the SDK.