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-05-01 05:47:14Z]: 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: be7a6f0e-6e89-41ef-b780-d1e1a5851c00 Correlation ID: 40143819-40b4-4615-ab4a-185ed8091d45 Timestamp: 2026-05-01 05:47:14Z - Correlation ID: 40143819-40b4-4615-ab4a-185ed8091d45 - Trace ID: be7a6f0e-6e89-41ef-b780-d1e1a5851c00
(node:3304) [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-05-01 05:47:14Z]: 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: 8d0e4ba1-706f-44b7-95c9-e595b98b1d00 Correlation ID: 6e8c494c-00f9-4ddd-b373-87423f098ec0 Timestamp: 2026-05-01 05:47:14Z - Correlation ID: 6e8c494c-00f9-4ddd-b373-87423f098ec0 - Trace ID: 8d0e4ba1-706f-44b7-95c9-e595b98b1d00
Error getting the secret: invalid_client: 7000222 - [2026-05-01 05:47:14Z]: 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: ec9c25c2-2d87-4772-974c-874d23b11e00 Correlation ID: 94554677-905d-46f4-b0fc-30186e114951 Timestamp: 2026-05-01 05:47:14Z - Correlation ID: 94554677-905d-46f4-b0fc-30186e114951 - Trace ID: ec9c25c2-2d87-4772-974c-874d23b11e00
Error getting the secret: invalid_client: 7000222 - [2026-05-01 05:47:15Z]: 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: a0fb703c-13f2-461f-b75e-037b5adc3100 Correlation ID: 448d8e08-8d8a-4b35-91f9-ac6b61708849 Timestamp: 2026-05-01 05:47:15Z - Correlation ID: 448d8e08-8d8a-4b35-91f9-ac6b61708849 - Trace ID: a0fb703c-13f2-461f-b75e-037b5adc3100
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)