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 71 Reputation points

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.
3,017 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 9,376 Reputation points Microsoft Employee

    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.