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-07-03 23:50:42Z]: 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: b1d0b7d4-3bf4-4d5c-aa1b-dab4cb9e0c00 Correlation ID: ecb3e8c9-7d7c-41a4-9e7d-5bd29cfd4c12 Timestamp: 2026-07-03 23:50:42Z - Correlation ID: ecb3e8c9-7d7c-41a4-9e7d-5bd29cfd4c12 - Trace ID: b1d0b7d4-3bf4-4d5c-aa1b-dab4cb9e0c00
(node:4656) [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-07-03 23:50:43Z]: 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: 0612d0a3-e29c-4372-b9c2-1abf8e4d0100 Correlation ID: 1a24d5a5-00a4-4d46-a81e-51dc73678314 Timestamp: 2026-07-03 23:50:43Z - Correlation ID: 1a24d5a5-00a4-4d46-a81e-51dc73678314 - Trace ID: 0612d0a3-e29c-4372-b9c2-1abf8e4d0100
Error getting the secret: invalid_client: 7000222 - [2026-07-03 23:50:43Z]: 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: b1d0b7d4-3bf4-4d5c-aa1b-dab4dc9e0c00 Correlation ID: eaf74319-16ad-47db-ac19-2fb315ac1d6e Timestamp: 2026-07-03 23:50:43Z - Correlation ID: eaf74319-16ad-47db-ac19-2fb315ac1d6e - Trace ID: b1d0b7d4-3bf4-4d5c-aa1b-dab4dc9e0c00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 23:50:43Z]: 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: b1d0b7d4-3bf4-4d5c-aa1b-dab4e29e0c00 Correlation ID: cd1a86c1-a0b5-4479-904a-88d8d1e19004 Timestamp: 2026-07-03 23:50:43Z - Correlation ID: cd1a86c1-a0b5-4479-904a-88d8d1e19004 - Trace ID: b1d0b7d4-3bf4-4d5c-aa1b-dab4e29e0c00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 23:50:44Z]: 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: 0612d0a3-e29c-4372-b9c2-1abf9f4d0100 Correlation ID: d42d55f9-f3f6-4554-b470-a1695b312313 Timestamp: 2026-07-03 23:50:44Z - Correlation ID: d42d55f9-f3f6-4554-b470-a1695b312313 - Trace ID: 0612d0a3-e29c-4372-b9c2-1abf9f4d0100
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:30:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)