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-05-17 08:18:03Z]: 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: c7ac189e-50c3-40d9-8135-52e2fd4e1100 Correlation ID: 11b8fa28-e32f-4994-bb00-f6f0e6df0be3 Timestamp: 2026-05-17 08:18:03Z - Correlation ID: 11b8fa28-e32f-4994-bb00-f6f0e6df0be3 - Trace ID: c7ac189e-50c3-40d9-8135-52e2fd4e1100
(node:5820) [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-05-17 08:18:03Z]: 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: 62139bb6-a6e4-4561-a2be-825437d90800 Correlation ID: fd5aedbf-f33c-4a66-8419-08e3840cbb79 Timestamp: 2026-05-17 08:18:03Z - Correlation ID: fd5aedbf-f33c-4a66-8419-08e3840cbb79 - Trace ID: 62139bb6-a6e4-4561-a2be-825437d90800
Error getting the secret: invalid_client: 7000222 - [2026-05-17 08:18:03Z]: 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: 7bc95c54-6b67-4bad-aea1-5ac2b64a0f00 Correlation ID: 4180ebbf-b082-4400-baa2-545c81b190df Timestamp: 2026-05-17 08:18:03Z - Correlation ID: 4180ebbf-b082-4400-baa2-545c81b190df - Trace ID: 7bc95c54-6b67-4bad-aea1-5ac2b64a0f00
Error getting the secret: invalid_client: 7000222 - [2026-05-17 08:18:03Z]: 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: 7911f2ff-4a68-49d5-b543-dcfc80bd1000 Correlation ID: 1d7ff69a-1595-4842-96e1-9ea9008ab2d9 Timestamp: 2026-05-17 08:18:03Z - Correlation ID: 1d7ff69a-1595-4842-96e1-9ea9008ab2d9 - Trace ID: 7911f2ff-4a68-49d5-b543-dcfc80bd1000
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)