Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused #37

Open
alissontenorio opened this issue Sep 26, 2024 · 4 comments
Open

Connection refused #37

alissontenorio opened this issue Sep 26, 2024 · 4 comments

Comments

@alissontenorio
Copy link

Describe the bug
Trying to connect to local event hub emulator shows message connection refused

To Reproduce
Configured it using python in vs code, the emulator I ran using docker.

Expected behavior
Connect sucessfully

Screenshots
image

image

image

image

image

Logs

[2024-09-26T21:17:11.087Z] The listener for function 'Functions.eventhub_trigger' was unable to start.
[2024-09-26T21:17:11.087Z] The listener for function 'Functions.eventhub_trigger' was unable to start. System.Private.CoreLib: One or more errors occurred. (Connection refused). System.Private.CoreLib: Connection refused.
[2024-09-26T21:17:24.521Z] EventProcessorHost error (Action='Retrieving list of partition identifiers from a Consumer Client.', HostName='5e9290e9-64b7-45d5-bbc8-df1bf4b75649', PartitionId='').
[2024-09-26T21:17:24.521Z] System.Private.CoreLib: Connection refused.
[2024-09-26T21:17:24.613Z] The listener for function 'Functions.eventhub_trigger' was unable to start.
[2024-09-26T21:17:24.613Z] The listener for function 'Functions.eventhub_trigger' was unable to start. System.Private.CoreLib: One or more errors occurred. (Connection refused). System.Private.CoreLib: Connection refused.
[2024-09-26T21:17:39.686Z] The listener for function 'Functions.eventhub_trigger' was unable to start.
[2024-09-26T21:17:39.686Z] The listener for function 'Functions.eventhub_trigger' was unable to start. System.Private.CoreLib: One or more errors occurred. (Connection refused). System.Private.CoreLib: Connection refused.
2024-09-26 18:04:05 info: a.a.aap[0]
2024-09-26 18:04:05       Emulator Service is Launching On Platform:CBL-Mariner/Linux,X64
2024-09-26 18:04:05 info: a.a.aap[0]
2024-09-26 18:04:05       Instantiating service components
2024-09-26 18:04:06 info: a.a.aap[0]
2024-09-26 18:04:06       Creating namespace, entities and consumer groups
2024-09-26 18:04:06 info: a.a.aaw[0]
2024-09-26 18:04:06       Emulator is launching with config : {"LoggingConfig":{"Type":"File"},"NamespaceConfig":[{"Type":"EventHub","Name":"emulatorns1","Entities":[{"Name":"inbound_eh","PartitionCount":2,"ConsumerGroups":[{"Name":"icg1"},{"Name":"$default"}]},{"Name":"right_eh","PartitionCount":2,"ConsumerGroups":[{"Name":"rcg1"},{"Name":"$default"}]},{"Name":"left_eh","PartitionCount":2,"ConsumerGroups":[{"Name":"lcg1"},{"Name":"$default"}]}]}]}
2024-09-26 18:04:07 info: a.a.aap[0]
2024-09-26 18:04:07       Emulator Service is Successfully Up! ; Use connection string : "Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"

Desktop:

  • Windows using WSL. VS code runs in WSL

Image Platform-Architecture Used:

  • Linux-amd64
  • Linux-arm64
  • Others (Please specify)

Docker Version:

  • Docker Desktop Version (If applicable): 4.32.0
  • Docker Engine Version: v27.0.3

Arguments && Environment variables to start Emulator:

  • ACCEPT_EULA: Y
  • CONFIG_PATH: ./config.json

Emulator Launch Method:

  • Direct Docker compose
@huykon
Copy link

huykon commented Oct 10, 2024

does anyone facing with the issue:
Connection string malformed: each part of the connection string must have an = assignment.

@bingqiangxiang
Copy link

I also encountered the same issue

Image

Image

@krishankumar95
Copy link
Contributor

@alissontenorio @bingqiangxiang ; Did we install the Azure Functions extension Microsoft.Azure.WebJobs.Extensions.EventHubs -Version 6.3.3 ; any versions below will not support EH Emulator and result in Connection Refused errors.

@krishankumar95
Copy link
Contributor

@huykon ; Is this related to Azure Functions + EventHubs ?
Can you share the connection sting being used here ?

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

No branches or pull requests

4 participants