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-26 06:18:53Z]: 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: 470b422c-71ad-41ed-b55d-3cc462e01700 Correlation ID: d4fd28de-bf83-4dc8-926a-e2f89c71e571 Timestamp: 2026-03-26 06:18:53Z - Correlation ID: d4fd28de-bf83-4dc8-926a-e2f89c71e571 - Trace ID: 470b422c-71ad-41ed-b55d-3cc462e01700
(node:1076) [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-26 06:18:53Z]: 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: 604219b3-7259-4c6e-8296-617c040d1700 Correlation ID: faadfe06-af93-469e-8deb-a87781acf72b Timestamp: 2026-03-26 06:18:53Z - Correlation ID: faadfe06-af93-469e-8deb-a87781acf72b - Trace ID: 604219b3-7259-4c6e-8296-617c040d1700
Error getting the secret: invalid_client: 7000222 - [2026-03-26 06:18:53Z]: 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: a33a0be0-db6d-4719-93e9-f69fc6a01a00 Correlation ID: b227d067-8e1e-4276-bb32-f8568c6e4b54 Timestamp: 2026-03-26 06:18:53Z - Correlation ID: b227d067-8e1e-4276-bb32-f8568c6e4b54 - Trace ID: a33a0be0-db6d-4719-93e9-f69fc6a01a00
Error getting the secret: invalid_client: 7000222 - [2026-03-26 06:18:53Z]: 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: 7e2a9d5b-45ad-4f6a-ba0d-bd4c5bfb1100 Correlation ID: fce0cf19-a93e-44be-a718-e29db68fef77 Timestamp: 2026-03-26 06:18:53Z - Correlation ID: fce0cf19-a93e-44be-a718-e29db68fef77 - Trace ID: 7e2a9d5b-45ad-4f6a-ba0d-bd4c5bfb1100
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)