Worker was unable to load function HttpTrigger: 'UNKNOWN: unknown error, lstat 'C:\home''

Chehui Chou 15 Reputation points
2023-04-13T02:23:30.3766667+00:00

My Function App had been working nicely for day, but this morning it suddenly stopped working. I checked Application Insights, but all I got was a whole bunch of HTTP 500 errors and exceptions that showed the following messages:

Exception while executing function: Functions.HttpTrigger Result: Failure
Exception: Worker was unable to load function HttpTrigger: 'UNKNOWN: unknown error, lstat 'C:\home''
Stack: Error: Worker was unable to load function HttpTrigger: 'UNKNOWN: unknown error, lstat 'C:\home''
    at Object.realpathSync (node:fs:2552:7)
    at toRealPath (node:internal/modules/cjs/loader:441:13)
    at Module._findPath (node:internal/modules/cjs/loader:584:24)
    at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at Object.apply (C:\Program Files (x86)\SiteExtensions\Functions\4.17.3\workers\node\dist\src\worker-bundle.js:2:42034)
    at require (node:internal/modules/cjs/helpers:103:18)
    at C:\Program Files (x86)\SiteExtensions\Functions\4.17.3\workers\node\dist\src\worker-bundle.js:2:39984
    at Generator.next (
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,555 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.