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-01-13 07:05:12Z]: 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: 8ef3bd28-c23b-4a0a-8156-3accaf707200 Correlation ID: 4e367699-0abe-4174-b036-4cdf8b65dc11 Timestamp: 2026-01-13 07:05:12Z - Correlation ID: 4e367699-0abe-4174-b036-4cdf8b65dc11 - Trace ID: 8ef3bd28-c23b-4a0a-8156-3accaf707200
(node:3272) [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-01-13 07:05:12Z]: 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: b776e786-112d-4e39-810a-bccbaeb97f00 Correlation ID: deeaa5f8-cb9c-473b-b58c-24b542bd2472 Timestamp: 2026-01-13 07:05:12Z - Correlation ID: deeaa5f8-cb9c-473b-b58c-24b542bd2472 - Trace ID: b776e786-112d-4e39-810a-bccbaeb97f00
Error getting the secret: invalid_client: 7000222 - [2026-01-13 07:05:12Z]: 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: cdc94731-47f6-4bb3-bec8-31be9ade4b00 Correlation ID: d43c5cb7-0499-467f-afe9-10aa6be5c66c Timestamp: 2026-01-13 07:05:12Z - Correlation ID: d43c5cb7-0499-467f-afe9-10aa6be5c66c - Trace ID: cdc94731-47f6-4bb3-bec8-31be9ade4b00
Error getting the secret: invalid_client: 7000222 - [2026-01-13 07:05:12Z]: 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: 2f9e560e-3369-4630-b992-f7b21a450e00 Correlation ID: 97282d0b-b7a1-4a33-aa8c-076240c56e7d Timestamp: 2026-01-13 07:05:12Z - Correlation ID: 97282d0b-b7a1-4a33-aa8c-076240c56e7d - Trace ID: 2f9e560e-3369-4630-b992-f7b21a450e00
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)