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 - [2025-11-18 23:15: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: 0577e57d-dc9f-4dfe-9c49-fb66a1456600 Correlation ID: a2bd75b0-0e37-476f-9bfb-125da9c8dca6 Timestamp: 2025-11-18 23:15:03Z - Correlation ID: a2bd75b0-0e37-476f-9bfb-125da9c8dca6 - Trace ID: 0577e57d-dc9f-4dfe-9c49-fb66a1456600
(node:3448) [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 - [2025-11-18 23:15: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: de12d25f-cb4e-46a5-9a69-bc1ae2cd6500 Correlation ID: dbe25213-9bd8-4a14-ab6d-93ceb546c43c Timestamp: 2025-11-18 23:15:03Z - Correlation ID: dbe25213-9bd8-4a14-ab6d-93ceb546c43c - Trace ID: de12d25f-cb4e-46a5-9a69-bc1ae2cd6500
Error getting the secret: invalid_client: 7000222 - [2025-11-18 23:15: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: de12d25f-cb4e-46a5-9a69-bc1ae6cd6500 Correlation ID: 70b751ab-5720-44b5-947f-b083e0d48fd2 Timestamp: 2025-11-18 23:15:03Z - Correlation ID: 70b751ab-5720-44b5-947f-b083e0d48fd2 - Trace ID: de12d25f-cb4e-46a5-9a69-bc1ae6cd6500
Error getting the secret: invalid_client: 7000222 - [2025-11-18 23:15: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: de12d25f-cb4e-46a5-9a69-bc1aeacd6500 Correlation ID: 54730ab0-6407-4725-a67f-ca920844dc39 Timestamp: 2025-11-18 23:15:03Z - Correlation ID: 54730ab0-6407-4725-a67f-ca920844dc39 - Trace ID: de12d25f-cb4e-46a5-9a69-bc1aeacd6500
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)