question

achrafdridi-4443 avatar image
0 Votes"
achrafdridi-4443 asked VenkateshDodda-MSFT answered

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

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]: /answers/storage/attachments/197776-image.png

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

VenkateshDodda-MSFT avatar image
0 Votes"
VenkateshDodda-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.