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-29 18:53:53Z]: 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: 348b869c-11b2-4f69-8a95-1f4f40990f00 Correlation ID: 778ceefa-ff10-4542-986c-1a38ea47cff1 Timestamp: 2026-04-29 18:53:53Z - Correlation ID: 778ceefa-ff10-4542-986c-1a38ea47cff1 - Trace ID: 348b869c-11b2-4f69-8a95-1f4f40990f00
(node:3420) [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-29 18:53:53Z]: 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: bc8a5433-7004-410a-8448-98ecf3db8100 Correlation ID: 11d138f5-1a38-4c1e-b386-3c96edbdad95 Timestamp: 2026-04-29 18:53:53Z - Correlation ID: 11d138f5-1a38-4c1e-b386-3c96edbdad95 - Trace ID: bc8a5433-7004-410a-8448-98ecf3db8100
Error getting the secret: invalid_client: 7000222 - [2026-04-29 18:53:54Z]: 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: ebd3ef4f-8745-492c-853b-d12c59940e00 Correlation ID: fbb6c2fa-32d1-44f3-a8da-c79dd9549671 Timestamp: 2026-04-29 18:53:54Z - Correlation ID: fbb6c2fa-32d1-44f3-a8da-c79dd9549671 - Trace ID: ebd3ef4f-8745-492c-853b-d12c59940e00
Error getting the secret: invalid_client: 7000222 - [2026-04-29 18:53:54Z]: 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: 63277cb8-ebff-4c08-8400-f559ed2a1000 Correlation ID: a772d517-413c-4020-8e93-10b7dec18adb Timestamp: 2026-04-29 18:53:54Z - Correlation ID: a772d517-413c-4020-8e93-10b7dec18adb - Trace ID: 63277cb8-ebff-4c08-8400-f559ed2a1000
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)