Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
42 stars 42 forks source link

Getting error of attempt failed for EventHub Trigger. Kindly help me in solving this issue. #178

Closed yashaswi90 closed 1 year ago

yashaswi90 commented 1 year ago

[2022-07-26T05:27:56.274Z] EventProcessorHost error (Action='Retrieving list of partition identifiers from a Consumer Client.', HostName='b561da97-9dbf-4eff-bf6a-639cff0002b1', Partiti onId=''). [2022-07-26T05:27:56.274Z] The listener for function 'Functions.CustomEventTrigger' was unable to start. [2022-07-26T05:27:56.276Z] System.Private.CoreLib: An attempt was made to access a socket in a way forbidden by its access permissions. [2022-07-26T05:27:56.277Z] The listener for function 'Functions.CustomEventTrigger' was unable to start. System.Private.CoreLib: One or more errors occurred. (An attempt was made to ac cess a socket in a way forbidden by its access permissions.) (An attempt was made to access a socket in a way forbidden by its access permissions.). System.Private.CoreLib: An attempt was made to access a socket in a way forbidden by its access permissions.

host.json { "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[3.3.0, 4.0.0)" } }

`package org.datareplication.functions;

import com.microsoft.azure.functions.annotation.; import com.microsoft.azure.functions.; import java.util.*;

/**

kaibocai commented 1 year ago

From the exception info, it seems related to your configuration. Please let me know if you still have this issue. Thanks.