Forum Discussion

ABruce1's avatar
ABruce1
Copper Contributor
Jun 21, 2024

Teams Bot App debugging locally Listener function unable to start error

Hi,

 

I have used the following guide to set up a Teams bot with Cron trigger to test out the abilities of the Teams Development toolkit. https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/toolkit-v4/debug-local-vs

 

I followed each step and all was well until the end when attempting to debug locally the function app could not fire its cron trigger and printed out the error "The listener for function 'NotifyTimerTrigger' was unable to start" and "No connection could be made because the target machine actively refused it. (127.0.0.1:10000)"

 

I haven't been able to find anything I did wrong or others who have had this same issue. Any guidance would be appreciated.

2 Replies

  • Meghana-MSFT's avatar
    Meghana-MSFT
    Bronze Contributor

    Could you check if below points are causing this issue for you. 

    1. Firewall Settings: Verify that the firewall on both the local and target machine is not blocking the connection. You may need to add an exception for the specific port you're trying to use.
    2. Port Configuration: Make sure that the port you're trying to connect to is open and listening on the target machine.
    • Meghana-MSFT's avatar
      Meghana-MSFT
      Bronze Contributor
      Could you please let us know if you are still facing this issue?

Resources