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-18 19:24:02Z]: 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: 6a6de894-2499-4cb4-90b7-9c7841203100 Correlation ID: 3ce0f125-2d4c-4349-ab0f-f423b67a8c7c Timestamp: 2026-03-18 19:24:02Z - Correlation ID: 3ce0f125-2d4c-4349-ab0f-f423b67a8c7c - Trace ID: 6a6de894-2499-4cb4-90b7-9c7841203100
(node:1296) [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-18 19:24:02Z]: 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: 41d0acd8-66da-412e-bd7b-77022b1d2800 Correlation ID: 3c9856dd-6b16-4e81-8891-766b1ba1c459 Timestamp: 2026-03-18 19:24:02Z - Correlation ID: 3c9856dd-6b16-4e81-8891-766b1ba1c459 - Trace ID: 41d0acd8-66da-412e-bd7b-77022b1d2800
Error getting the secret: invalid_client: 7000222 - [2026-03-18 19:24:02Z]: 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: fa828a6b-1dfe-422b-b3e6-1f5f480c2700 Correlation ID: 7575ee55-ca75-4324-81fa-7a104020ab76 Timestamp: 2026-03-18 19:24:02Z - Correlation ID: 7575ee55-ca75-4324-81fa-7a104020ab76 - Trace ID: fa828a6b-1dfe-422b-b3e6-1f5f480c2700
Error getting the secret: invalid_client: 7000222 - [2026-03-18 19:24:03Z]: 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: 1381be79-b881-40db-99df-462060772f00 Correlation ID: 9496bcd8-dedd-40a3-8771-a685b22c1f30 Timestamp: 2026-03-18 19:24:03Z - Correlation ID: 9496bcd8-dedd-40a3-8771-a685b22c1f30 - Trace ID: 1381be79-b881-40db-99df-462060772f00
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)