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-01-07 06:06:50Z]: 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: 96f8db68-2cce-4f33-ad36-f89bf8cdc701 Correlation ID: 88944d08-9754-4f9c-a68d-a6b1f14ff48e Timestamp: 2026-01-07 06:06:50Z - Correlation ID: 88944d08-9754-4f9c-a68d-a6b1f14ff48e - Trace ID: 96f8db68-2cce-4f33-ad36-f89bf8cdc701
(node:3324) [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-01-07 06:06:51Z]: 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: 11269497-c1b5-4f6f-98dd-3b038b393800 Correlation ID: 92139a45-1aee-4e59-92ea-8c99348f7509 Timestamp: 2026-01-07 06:06:51Z - Correlation ID: 92139a45-1aee-4e59-92ea-8c99348f7509 - Trace ID: 11269497-c1b5-4f6f-98dd-3b038b393800
Error getting the secret: invalid_client: 7000222 - [2026-01-07 06:06:51Z]: 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: 11269497-c1b5-4f6f-98dd-3b0393393800 Correlation ID: 68007204-1e7c-43f4-af14-11b3aa94be4f Timestamp: 2026-01-07 06:06:51Z - Correlation ID: 68007204-1e7c-43f4-af14-11b3aa94be4f - Trace ID: 11269497-c1b5-4f6f-98dd-3b0393393800
Error getting the secret: invalid_client: 7000222 - [2026-01-07 06:06:51Z]: 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: 11269497-c1b5-4f6f-98dd-3b039a393800 Correlation ID: 9549ed3a-6077-4fc9-b139-e5a9f72c63ca Timestamp: 2026-01-07 06:06:51Z - Correlation ID: 9549ed3a-6077-4fc9-b139-e5a9f72c63ca - Trace ID: 11269497-c1b5-4f6f-98dd-3b039a393800
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)