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-20 00:17: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: fdc4ed1e-65e0-4a8e-abe3-f19ba88b0000 Correlation ID: c7e54ef2-debf-41c7-9134-3d1dd68135d6 Timestamp: 2026-04-20 00:17:03Z - Correlation ID: c7e54ef2-debf-41c7-9134-3d1dd68135d6 - Trace ID: fdc4ed1e-65e0-4a8e-abe3-f19ba88b0000
(node:5432) [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-20 00:17:04Z]: 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: 27d66e38-75fa-41f8-a2ad-d9ef343d0b00 Correlation ID: c685703d-aa83-49f7-9024-5db3dd273a21 Timestamp: 2026-04-20 00:17:04Z - Correlation ID: c685703d-aa83-49f7-9024-5db3dd273a21 - Trace ID: 27d66e38-75fa-41f8-a2ad-d9ef343d0b00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 00:17:04Z]: 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: c6b24317-8c37-42d5-b38f-ca33b6200000 Correlation ID: b0fe6526-77ed-433d-8158-7a87dad2caa8 Timestamp: 2026-04-20 00:17:04Z - Correlation ID: b0fe6526-77ed-433d-8158-7a87dad2caa8 - Trace ID: c6b24317-8c37-42d5-b38f-ca33b6200000
Error getting the secret: invalid_client: 7000222 - [2026-04-20 00:17:04Z]: 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: 27d66e38-75fa-41f8-a2ad-d9ef3c3d0b00 Correlation ID: 5bdeaad4-8607-44c8-9f84-83aa9749fcec Timestamp: 2026-04-20 00:17:04Z - Correlation ID: 5bdeaad4-8607-44c8-9f84-83aa9749fcec - Trace ID: 27d66e38-75fa-41f8-a2ad-d9ef3c3d0b00
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)