Debug Azure Function (Python) in VSCode and RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted python in vs code

Achraf DRIDI 76 Reputation points
2022-04-29T13:50:30.697+00:00

Hi, I'm trying to run an azure function app locally(python) that helps deploy ML model but I got this error. I debugged before other function apps locally and they worked fine . I tried to debug it with the command " func host start --port (different port) and the function restart all by itself and get the same white description in the screenshot " info: Grpc.AspNetCore.Server.ServerCallHandler[14] Error reading message. System.IO.IOException: The request stream was aborted...." ![197776-image.png][1] [1]: /api/attachments/197776-image.png?platform=QnA

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,322 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 18,696 Reputation points Microsoft Employee
    2022-05-02T05:18:14.537+00:00

    anonymous user, Thanks for reaching out. Function invocations are evenly distributed among language worker processes. Language worker processes are spawned every 10 seconds until the count set by FUNCTIONS_WORKER_PROCESS_COUNT is reached. Could you please add this app settings FUNCTIONS_WORKER_PROCESS_COUNT to your local.settings.json file and try to run the function app again.

    Feel free to reach back to me if you have any further questions.

    1 person found this answer helpful.