You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running containers in the same docker bridge network and attempting to connect via using EventHubsTransportType.AmqpWebSockets results in a connection refused.
I am able to connect fine if I leave the TransportType to the default, but I don't see anything in the documentation for the emulator that AmqpWebSockets is unsupported.
The text was updated successfully, but these errors were encountered:
jdiekhoff-copeland
changed the title
Connection refused connecting from another container running 1.2.4-preview
Connection refused when using EventHubsTransportType.AmqpWebSockets
Aug 22, 2024
Hi @jdiekhoff-copeland , thanks for bringing this to our attention. As of today, Event Hubs emulator only works with Default AMQP flow and AMQPWebsockets is not supported. We'll update our documentation to reflect this accordingly.
To understand the situation better, could you please share more details on your use case and why you'd prefer AMQPwebsockets over traditional AMQP?
@Saglodha good to know, I will update our code accordingly.
The use of AMQPwebsockets was being done for local development as a workaround. Prior to using the eventhub emulator, our development team was testing against Azure Eventhubs. We noticed when we were on VPN that the normal connection to EventHubs was not working, and we were getting socketexception 10054. We found this stackoverflow and by setting the TransportType to AMQPWebSockets allowed for normal operations.
Now that we are using the emulator, we do not have a use case for AMQPWebSockets since all traffic is local.
Describe the bug
Running containers in the same docker bridge network and attempting to connect via using EventHubsTransportType.AmqpWebSockets results in a connection refused.
To Reproduce
1.2.4-preview-amd64
as that supports connecting to the event hub container via container alias.Sample compose:
Expected behavior
Container should be able to connect to the event hub.
Screenshots

Logs
log2024082200.txt
Desktop:
Image Platform-Architecture Used:
Docker Version:
Arguments && Environment variables to start Emulator:
Emulator Launch Method:
Additional context:
I am able to connect fine if I leave the TransportType to the default, but I don't see anything in the documentation for the emulator that AmqpWebSockets is unsupported.
The text was updated successfully, but these errors were encountered: