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-03 05:06:02Z]: 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: bbcdd6e6-c541-456d-a732-ce5237e84201 Correlation ID: f5efc276-9a73-487b-bd9b-bed59ac7ef3c Timestamp: 2026-01-03 05:06:02Z - Correlation ID: f5efc276-9a73-487b-bd9b-bed59ac7ef3c - Trace ID: bbcdd6e6-c541-456d-a732-ce5237e84201
(node:5856) [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-03 05:06:02Z]: 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: 4ca301e5-f838-403e-ba07-b61537cb6401 Correlation ID: 4cecb4d9-15fa-488a-981f-55cfcc98ad35 Timestamp: 2026-01-03 05:06:02Z - Correlation ID: 4cecb4d9-15fa-488a-981f-55cfcc98ad35 - Trace ID: 4ca301e5-f838-403e-ba07-b61537cb6401
Error getting the secret: invalid_client: 7000222 - [2026-01-03 05:06:02Z]: 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: 8437c925-69d5-4c8e-afd2-22af6f3d0e01 Correlation ID: 84bf1259-ee13-4c4c-b21c-cbe4f175cc46 Timestamp: 2026-01-03 05:06:02Z - Correlation ID: 84bf1259-ee13-4c4c-b21c-cbe4f175cc46 - Trace ID: 8437c925-69d5-4c8e-afd2-22af6f3d0e01
Error getting the secret: invalid_client: 7000222 - [2026-01-03 05:06:02Z]: 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: 8437c925-69d5-4c8e-afd2-22af713d0e01 Correlation ID: 5695f5cb-c1bc-4b17-aa90-8ed48426439f Timestamp: 2026-01-03 05:06:02Z - Correlation ID: 5695f5cb-c1bc-4b17-aa90-8ed48426439f - Trace ID: 8437c925-69d5-4c8e-afd2-22af713d0e01
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)