iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Error getting the secret: invalid_client: 7000222 - [2026-03-03 09:27:02Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 451ecfd6-d9d2-4860-bc70-225ab5157300 Correlation ID: a9f327d8-d4d6-48c2-a115-28fa4c4c36df Timestamp: 2026-03-03 09:27:02Z - Correlation ID: a9f327d8-d4d6-48c2-a115-28fa4c4c36df - Trace ID: 451ecfd6-d9d2-4860-bc70-225ab5157300
(node:3944) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error getting the secret: invalid_client: 7000222 - [2026-03-03 09:27:03Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 6588da2d-87ae-4e50-b4c1-0bb5ec226100 Correlation ID: 16ebe3ed-ed13-4e9b-963e-9070d282c21a Timestamp: 2026-03-03 09:27:03Z - Correlation ID: 16ebe3ed-ed13-4e9b-963e-9070d282c21a - Trace ID: 6588da2d-87ae-4e50-b4c1-0bb5ec226100
Error getting the secret: invalid_client: 7000222 - [2026-03-03 09:27:03Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 2ab2d80d-9db7-4998-958d-b5ec513f0200 Correlation ID: 3a29dd20-a3da-47ce-942b-1d75436c1584 Timestamp: 2026-03-03 09:27:03Z - Correlation ID: 3a29dd20-a3da-47ce-942b-1d75436c1584 - Trace ID: 2ab2d80d-9db7-4998-958d-b5ec513f0200
Error getting the secret: invalid_client: 7000222 - [2026-03-03 09:27:03Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 36bdbb93-620e-4f5e-877a-4d6e03612600 Correlation ID: 6d4b9820-29ae-4fa4-a00b-5191b31ed9a6 Timestamp: 2026-03-03 09:27:03Z - Correlation ID: 6d4b9820-29ae-4fa4-a00b-5191b31ed9a6 - Trace ID: 36bdbb93-620e-4f5e-877a-4d6e03612600
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'cosdb')
at C:\stop_order_dev\server.js:25:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)