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-12-02 10:37:12Z]: 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: 70df32ab-8137-41e8-898e-187be3db9f00 Correlation ID: 8f02ae95-ec08-447b-ba39-5a79a7208e30 Timestamp: 2026-12-02 10:37:12Z - Correlation ID: 8f02ae95-ec08-447b-ba39-5a79a7208e30 - Trace ID: 70df32ab-8137-41e8-898e-187be3db9f00
(node:2764) [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-12-02 10:37:12Z]: 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: 6e79291d-b1ab-4daa-97be-5937dba39f00 Correlation ID: b862ebde-986c-4b40-a963-573349f71c94 Timestamp: 2026-12-02 10:37:12Z - Correlation ID: b862ebde-986c-4b40-a963-573349f71c94 - Trace ID: 6e79291d-b1ab-4daa-97be-5937dba39f00
Error getting the secret: invalid_client: 7000222 - [2026-12-02 10:37:13Z]: 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: 8b5cd44a-b5b0-460a-bc6b-015946bca100 Correlation ID: 4b8d85fb-898a-45e2-a212-c5b0c097ee7d Timestamp: 2026-12-02 10:37:13Z - Correlation ID: 4b8d85fb-898a-45e2-a212-c5b0c097ee7d - Trace ID: 8b5cd44a-b5b0-460a-bc6b-015946bca100
Error getting the secret: invalid_client: 7000222 - [2026-12-02 10:37:13Z]: 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: 5258d31d-9849-4abc-92a0-4190ac91ae00 Correlation ID: 04979e60-500d-43b6-b918-8ab535455386 Timestamp: 2026-12-02 10:37:13Z - Correlation ID: 04979e60-500d-43b6-b918-8ab535455386 - Trace ID: 5258d31d-9849-4abc-92a0-4190ac91ae00
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)