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-02-27 14:27:49Z]: 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: 447d3c2c-d4b4-46b7-9796-7c59f6171d00 Correlation ID: 31b9bae5-5430-4789-a551-073103f61025 Timestamp: 2026-02-27 14:27:49Z - Correlation ID: 31b9bae5-5430-4789-a551-073103f61025 - Trace ID: 447d3c2c-d4b4-46b7-9796-7c59f6171d00
(node:3816) [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-02-27 14:27:49Z]: 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: b0db325c-460f-4c8f-ac90-6fd0c80d3d00 Correlation ID: 4938d64b-3c5c-4a4e-9955-8bf8d21a2e61 Timestamp: 2026-02-27 14:27:49Z - Correlation ID: 4938d64b-3c5c-4a4e-9955-8bf8d21a2e61 - Trace ID: b0db325c-460f-4c8f-ac90-6fd0c80d3d00
Error getting the secret: invalid_client: 7000222 - [2026-02-27 14:27:49Z]: 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: eb4e0294-196f-4bb7-a4e7-e0f4c1d53f00 Correlation ID: 94362c7e-ed38-459e-bb1f-e40d1190c78f Timestamp: 2026-02-27 14:27:49Z - Correlation ID: 94362c7e-ed38-459e-bb1f-e40d1190c78f - Trace ID: eb4e0294-196f-4bb7-a4e7-e0f4c1d53f00
Error getting the secret: invalid_client: 7000222 - [2026-02-27 14:27:50Z]: 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: 16580af8-ba2a-4c39-a661-211f3cb02000 Correlation ID: 680a26a0-60d9-4935-87f0-40ae3da3b688 Timestamp: 2026-02-27 14:27:50Z - Correlation ID: 680a26a0-60d9-4935-87f0-40ae3da3b688 - Trace ID: 16580af8-ba2a-4c39-a661-211f3cb02000
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)