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-07 16:00:32Z]: 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: bbce24cf-acf4-40de-a2c9-01dad8789500 Correlation ID: 1d857b2c-29bc-4768-b9cd-a49021a294e4 Timestamp: 2026-03-07 16:00:32Z - Correlation ID: 1d857b2c-29bc-4768-b9cd-a49021a294e4 - Trace ID: bbce24cf-acf4-40de-a2c9-01dad8789500
(node:5164) [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-07 16:00:33Z]: 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: ea38449a-c7ad-4cfb-9efd-3b021cc8a200 Correlation ID: 3ebb0b37-73e0-4f49-91f3-0477716349d8 Timestamp: 2026-03-07 16:00:33Z - Correlation ID: 3ebb0b37-73e0-4f49-91f3-0477716349d8 - Trace ID: ea38449a-c7ad-4cfb-9efd-3b021cc8a200
Error getting the secret: invalid_client: 7000222 - [2026-03-07 16:00:33Z]: 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: 96c9f189-a5c8-423f-8685-21b6fe494200 Correlation ID: e0cf9954-0faf-4dba-adf8-935f209bebfe Timestamp: 2026-03-07 16:00:33Z - Correlation ID: e0cf9954-0faf-4dba-adf8-935f209bebfe - Trace ID: 96c9f189-a5c8-423f-8685-21b6fe494200
Error getting the secret: invalid_client: 7000222 - [2026-03-07 16:00:34Z]: 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: 51d9753e-4c80-440c-9e83-da3ac6fe5700 Correlation ID: e4eacb3f-e360-4765-b8d1-9e1de4abeca5 Timestamp: 2026-03-07 16:00:34Z - Correlation ID: e4eacb3f-e360-4765-b8d1-9e1de4abeca5 - Trace ID: 51d9753e-4c80-440c-9e83-da3ac6fe5700
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)