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 - [2025-12-07 02:35:00Z]: 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: f69c8d43-3886-4ac6-8cb3-80f8a18a0500 Correlation ID: 28376bd6-d4f2-45f9-bf82-37f0bb5afada Timestamp: 2025-12-07 02:35:00Z - Correlation ID: 28376bd6-d4f2-45f9-bf82-37f0bb5afada - Trace ID: f69c8d43-3886-4ac6-8cb3-80f8a18a0500
(node:5028) [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 - [2025-12-07 02:35:01Z]: 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: fd4cc400-415b-481f-985c-562308a60600 Correlation ID: 5b40e4ee-bb59-44d8-93d3-916478ac16e9 Timestamp: 2025-12-07 02:35:01Z - Correlation ID: 5b40e4ee-bb59-44d8-93d3-916478ac16e9 - Trace ID: fd4cc400-415b-481f-985c-562308a60600
Error getting the secret: invalid_client: 7000222 - [2025-12-07 02:35:01Z]: 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: 412e5d44-783c-4e13-b704-d6071ede0400 Correlation ID: 4b53d894-5711-490b-a2cb-6e6c1fe16408 Timestamp: 2025-12-07 02:35:01Z - Correlation ID: 4b53d894-5711-490b-a2cb-6e6c1fe16408 - Trace ID: 412e5d44-783c-4e13-b704-d6071ede0400
Error getting the secret: invalid_client: 7000222 - [2025-12-07 02:35:01Z]: 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: a4e872ca-35c5-4ba8-97d5-baac4edb0600 Correlation ID: db00e6e2-0063-489c-8a6f-6172b1918b4c Timestamp: 2025-12-07 02:35:01Z - Correlation ID: db00e6e2-0063-489c-8a6f-6172b1918b4c - Trace ID: a4e872ca-35c5-4ba8-97d5-baac4edb0600
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)