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-03 23:45:29Z]: 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: d4ce08ef-fcd8-4a30-a0a3-223b674bed00 Correlation ID: 7da5b5ae-0473-4523-827f-6a5e50264c61 Timestamp: 2026-01-03 23:45:29Z - Correlation ID: 7da5b5ae-0473-4523-827f-6a5e50264c61 - Trace ID: d4ce08ef-fcd8-4a30-a0a3-223b674bed00
(node:3816) [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-03 23:45:29Z]: 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: 883042e6-57fe-41e5-9b89-ab894e20b100 Correlation ID: fdcf4a33-ae4b-4a8c-8faa-87cb6d109f89 Timestamp: 2026-01-03 23:45:29Z - Correlation ID: fdcf4a33-ae4b-4a8c-8faa-87cb6d109f89 - Trace ID: 883042e6-57fe-41e5-9b89-ab894e20b100
Error getting the secret: invalid_client: 7000222 - [2026-01-03 23:45:29Z]: 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: 4ef8b7b3-73e3-4f46-9b70-a51b6fc87d01 Correlation ID: 0a1cc99b-f9b5-428c-b69e-d95f835b9fb9 Timestamp: 2026-01-03 23:45:29Z - Correlation ID: 0a1cc99b-f9b5-428c-b69e-d95f835b9fb9 - Trace ID: 4ef8b7b3-73e3-4f46-9b70-a51b6fc87d01
Error getting the secret: invalid_client: 7000222 - [2026-01-03 23:45:30Z]: 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: 883042e6-57fe-41e5-9b89-ab895120b100 Correlation ID: 5a724a0b-e44f-4472-9704-caa2528772d7 Timestamp: 2026-01-03 23:45:30Z - Correlation ID: 5a724a0b-e44f-4472-9704-caa2528772d7 - Trace ID: 883042e6-57fe-41e5-9b89-ab895120b100
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)