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-12-12 04:53:39Z]: 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: ff4beddb-49d8-4d23-a283-7441d3ae6600 Correlation ID: 8996515c-b55d-44ea-8209-cb20655d4254 Timestamp: 2025-12-12 04:53:39Z - Correlation ID: 8996515c-b55d-44ea-8209-cb20655d4254 - Trace ID: ff4beddb-49d8-4d23-a283-7441d3ae6600
(node:4068) [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-12-12 04:53:39Z]: 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: 9cc732bd-8e72-4250-bf3d-29f822311e00 Correlation ID: 8d879679-6a1e-4969-91d5-019b911c2dd9 Timestamp: 2025-12-12 04:53:39Z - Correlation ID: 8d879679-6a1e-4969-91d5-019b911c2dd9 - Trace ID: 9cc732bd-8e72-4250-bf3d-29f822311e00
Error getting the secret: invalid_client: 7000222 - [2025-12-12 04:53:39Z]: 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: 8a15279a-cfaf-465f-b146-9182e63f4b00 Correlation ID: 8be9d5aa-b5c0-42ce-8617-2fdbd98a58e7 Timestamp: 2025-12-12 04:53:39Z - Correlation ID: 8be9d5aa-b5c0-42ce-8617-2fdbd98a58e7 - Trace ID: 8a15279a-cfaf-465f-b146-9182e63f4b00
Error getting the secret: invalid_client: 7000222 - [2025-12-12 04:53:39Z]: 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: 1afe3b26-b317-48e3-b99b-ed6c231b2100 Correlation ID: 185ac702-c500-40b8-a84c-63608b907501 Timestamp: 2025-12-12 04:53:39Z - Correlation ID: 185ac702-c500-40b8-a84c-63608b907501 - Trace ID: 1afe3b26-b317-48e3-b99b-ed6c231b2100
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)