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-04-06 05:11:19Z]: 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: 1cb512c3-1299-469b-9c34-34365e2b2c00 Correlation ID: 91d62cf9-493b-46c4-8b58-2bfcb7027f11 Timestamp: 2026-04-06 05:11:19Z - Correlation ID: 91d62cf9-493b-46c4-8b58-2bfcb7027f11 - Trace ID: 1cb512c3-1299-469b-9c34-34365e2b2c00
(node:5464) [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-04-06 05:11:19Z]: 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: 4a7e07f9-5052-480f-b670-be9865c53500 Correlation ID: 5ae12524-ab10-446a-9d2a-690747e07700 Timestamp: 2026-04-06 05:11:19Z - Correlation ID: 5ae12524-ab10-446a-9d2a-690747e07700 - Trace ID: 4a7e07f9-5052-480f-b670-be9865c53500
Error getting the secret: invalid_client: 7000222 - [2026-04-06 05:11:20Z]: 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: cea00758-c64e-4b24-b80c-95c6e6cd1400 Correlation ID: fa05da3f-7d4b-4a2a-ad64-a717b9e3027c Timestamp: 2026-04-06 05:11:20Z - Correlation ID: fa05da3f-7d4b-4a2a-ad64-a717b9e3027c - Trace ID: cea00758-c64e-4b24-b80c-95c6e6cd1400
Error getting the secret: invalid_client: 7000222 - [2026-04-06 05:11:20Z]: 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: 7ea4d9d8-5c3c-46ec-97fd-c7cca4cf1a00 Correlation ID: fe764b5d-56b4-4d0d-96ec-75e4becdf23a Timestamp: 2026-04-06 05:11:20Z - Correlation ID: fe764b5d-56b4-4d0d-96ec-75e4becdf23a - Trace ID: 7ea4d9d8-5c3c-46ec-97fd-c7cca4cf1a00
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)