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-03-03 13:28:35Z]: 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: db1b9371-4787-4c60-b6db-e8602c582900 Correlation ID: 9eedea51-15b0-4d0d-a1ff-f310e28ed668 Timestamp: 2026-03-03 13:28:35Z - Correlation ID: 9eedea51-15b0-4d0d-a1ff-f310e28ed668 - Trace ID: db1b9371-4787-4c60-b6db-e8602c582900
(node:5316) [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-03-03 13:28:35Z]: 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: bec35263-afa0-4269-bd3c-1ef4a7433400 Correlation ID: 25b7ef98-5783-436b-a574-6eae81c88c22 Timestamp: 2026-03-03 13:28:35Z - Correlation ID: 25b7ef98-5783-436b-a574-6eae81c88c22 - Trace ID: bec35263-afa0-4269-bd3c-1ef4a7433400
Error getting the secret: invalid_client: 7000222 - [2026-03-03 13:28:36Z]: 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: 81f671ed-58a8-4b60-aec3-fb415ad90600 Correlation ID: 4729b6fb-fda2-430d-acf0-f8dc8fcb1144 Timestamp: 2026-03-03 13:28:36Z - Correlation ID: 4729b6fb-fda2-430d-acf0-f8dc8fcb1144 - Trace ID: 81f671ed-58a8-4b60-aec3-fb415ad90600
Error getting the secret: invalid_client: 7000222 - [2026-03-03 13:28:36Z]: 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: 23e70e9f-dc5d-4714-bb92-6a0c9d887500 Correlation ID: 45260bce-5f3b-4534-b212-ddff00fc0473 Timestamp: 2026-03-03 13:28:36Z - Correlation ID: 45260bce-5f3b-4534-b212-ddff00fc0473 - Trace ID: 23e70e9f-dc5d-4714-bb92-6a0c9d887500
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)