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 18:31:27Z]: 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: b1e6753c-8564-4318-9609-1490882f4500 Correlation ID: e5148e94-cb6e-4049-9e7f-8c9dd28cdbf4 Timestamp: 2026-03-03 18:31:27Z - Correlation ID: e5148e94-cb6e-4049-9e7f-8c9dd28cdbf4 - Trace ID: b1e6753c-8564-4318-9609-1490882f4500
(node:3800) [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 18:31:27Z]: 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: 52630ff0-3f40-4c35-b263-af472da70d00 Correlation ID: 78b5399e-fc2f-4776-9bd3-dc529456ac32 Timestamp: 2026-03-03 18:31:27Z - Correlation ID: 78b5399e-fc2f-4776-9bd3-dc529456ac32 - Trace ID: 52630ff0-3f40-4c35-b263-af472da70d00
Error getting the secret: invalid_client: 7000222 - [2026-03-03 18:31:28Z]: 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: 5b810126-b2e1-4e5b-8557-c87ca84c4400 Correlation ID: 04ef313b-3270-4c78-b27d-2b9d1c83a212 Timestamp: 2026-03-03 18:31:28Z - Correlation ID: 04ef313b-3270-4c78-b27d-2b9d1c83a212 - Trace ID: 5b810126-b2e1-4e5b-8557-c87ca84c4400
Error getting the secret: invalid_client: 7000222 - [2026-03-03 18:31:28Z]: 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: 54b204c4-f816-49d5-8b6e-130110b40400 Correlation ID: 3b90105c-7bc3-49f7-bf22-80fe9ce8c64c Timestamp: 2026-03-03 18:31:28Z - Correlation ID: 3b90105c-7bc3-49f7-bf22-80fe9ce8c64c - Trace ID: 54b204c4-f816-49d5-8b6e-130110b40400
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)