Azure / azure-event-hubs-emulator-installer

This repository acts as a central hub for handling issues, collecting feedback, and facilitating discussions related to the Azure Event Hubs emulator.
https://learn.microsoft.com/azure/event-hubs/overview-emulator
MIT License
33 stars 10 forks source link

Failed to initiate the connection due to SSL: UNEXPECTED_EOF_WHILE_READING #14

Closed yanivakivas closed 5 months ago

yanivakivas commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

When trying to initiate a connection with my local azure event hub, i'm getting an SSL: UNEXPECTED_EOF_WHILE_READING.

To Reproduce Steps to reproduce the behavior:

import logging
from azure.eventhub import EventHubConsumerClient, TransportType

connection_str = "Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"

consumer_group = 'cg1'
eventhub_name = 'eh1'

client = EventHubConsumerClient.from_connection_string(connection_str, consumer_group, eventhub_name=eventhub_name)

print(client.get_eventhub_properties())

Expected behavior A clear and concise description of what you expected to happen. Connection to local Azure Event Hub

Desktop:

Image Platform-Architecture Used:

Docker Version:

Arguments && Environment variables to start Emulator:

Emulator Launch Method:

Additional context: followed the guide, yet received this issue. what should i do?

yanivakivas commented 5 months ago

fixed, should update python package of: azure-eventhub==5.12.0