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-04-22 12:42:47Z]: 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: 7f53cb3f-869a-405a-be52-673f1d150500 Correlation ID: 306414c6-3c4e-425b-b1df-3c17454b749c Timestamp: 2026-04-22 12:42:47Z - Correlation ID: 306414c6-3c4e-425b-b1df-3c17454b749c - Trace ID: 7f53cb3f-869a-405a-be52-673f1d150500
(node:616) [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-04-22 12:42:47Z]: 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: aa52b44c-d42b-4d1a-bb6f-203e32142500 Correlation ID: 2ca9986e-0326-4406-a433-82310c201372 Timestamp: 2026-04-22 12:42:47Z - Correlation ID: 2ca9986e-0326-4406-a433-82310c201372 - Trace ID: aa52b44c-d42b-4d1a-bb6f-203e32142500
Error getting the secret: invalid_client: 7000222 - [2026-04-22 12:42:47Z]: 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: f9fc8b96-544e-4aa4-90b3-64f883c60300 Correlation ID: b3b93c12-ef3f-4480-be24-ee81dfc8e192 Timestamp: 2026-04-22 12:42:47Z - Correlation ID: b3b93c12-ef3f-4480-be24-ee81dfc8e192 - Trace ID: f9fc8b96-544e-4aa4-90b3-64f883c60300
Error getting the secret: invalid_client: 7000222 - [2026-04-22 12:42:47Z]: 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: 7e3301e2-90fa-4340-8248-76bf48080400 Correlation ID: ba20c3f6-a75b-4859-a21d-19548f473d10 Timestamp: 2026-04-22 12:42:47Z - Correlation ID: ba20c3f6-a75b-4859-a21d-19548f473d10 - Trace ID: 7e3301e2-90fa-4340-8248-76bf48080400
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)