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-09 15:31:25Z]: 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: 1a1760d7-c730-4297-ba4f-e3dae57e5300 Correlation ID: 22db25a0-d0ef-4c3f-9d6f-5f7ab9d2b510 Timestamp: 2026-04-09 15:31:25Z - Correlation ID: 22db25a0-d0ef-4c3f-9d6f-5f7ab9d2b510 - Trace ID: 1a1760d7-c730-4297-ba4f-e3dae57e5300
(node:388) [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-09 15:31:26Z]: 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: 3885a7d5-a189-4ce0-ab32-95a39b8a0700 Correlation ID: 84e8b017-48c4-4363-960e-20e642e8a632 Timestamp: 2026-04-09 15:31:26Z - Correlation ID: 84e8b017-48c4-4363-960e-20e642e8a632 - Trace ID: 3885a7d5-a189-4ce0-ab32-95a39b8a0700
Error getting the secret: invalid_client: 7000222 - [2026-04-09 15:31:26Z]: 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: e00f4d34-900e-4fde-8445-0ce88ab15900 Correlation ID: a52f527e-5dd3-4fb5-9e13-b393570f0dfe Timestamp: 2026-04-09 15:31:26Z - Correlation ID: a52f527e-5dd3-4fb5-9e13-b393570f0dfe - Trace ID: e00f4d34-900e-4fde-8445-0ce88ab15900
Error getting the secret: invalid_client: 7000222 - [2026-04-09 15:31:26Z]: 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: c63dedb0-e22a-461f-a95f-ed9b93ac4d00 Correlation ID: e1a771db-2a27-4dd6-9ade-aa15974abffc Timestamp: 2026-04-09 15:31:26Z - Correlation ID: e1a771db-2a27-4dd6-9ade-aa15974abffc - Trace ID: c63dedb0-e22a-461f-a95f-ed9b93ac4d00
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)