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-08 23:58:45Z]: 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: dfe918a6-d8fb-4260-82b7-79f8cc6d6b00 Correlation ID: b198fca5-d09d-44cc-b884-6d9de6526be1 Timestamp: 2026-07-08 23:58:45Z - Correlation ID: b198fca5-d09d-44cc-b884-6d9de6526be1 - Trace ID: dfe918a6-d8fb-4260-82b7-79f8cc6d6b00
(node:4308) [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-08 23:58:45Z]: 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: 9884fdd0-c37a-4eb7-8ffd-e2a5c7687800 Correlation ID: eb5f1b32-c025-400c-b75d-de050d86fe47 Timestamp: 2026-07-08 23:58:45Z - Correlation ID: eb5f1b32-c025-400c-b75d-de050d86fe47 - Trace ID: 9884fdd0-c37a-4eb7-8ffd-e2a5c7687800
Error getting the secret: invalid_client: 7000222 - [2026-07-08 23:58:45Z]: 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: e489bbef-79a3-4848-99c3-91d194015f00 Correlation ID: 6379cbd8-b2a4-4f35-bb5a-804f43e7b7a1 Timestamp: 2026-07-08 23:58:45Z - Correlation ID: 6379cbd8-b2a4-4f35-bb5a-804f43e7b7a1 - Trace ID: e489bbef-79a3-4848-99c3-91d194015f00
Error getting the secret: invalid_client: 7000222 - [2026-07-08 23:58:46Z]: 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: 55a91408-a772-456e-aa48-4b05c9950900 Correlation ID: 6310e3a6-dd1b-4092-9530-7474aa898927 Timestamp: 2026-07-08 23:58:46Z - Correlation ID: 6310e3a6-dd1b-4092-9530-7474aa898927 - Trace ID: 55a91408-a772-456e-aa48-4b05c9950900
Error getting the secret: invalid_client: 7000222 - [2026-07-08 23:58:46Z]: 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: a56988d9-b20a-4a82-a62b-90b9f06f8100 Correlation ID: ef03defb-d3eb-49fb-a6a2-5f8594337816 Timestamp: 2026-07-08 23:58:46Z - Correlation ID: ef03defb-d3eb-49fb-a6a2-5f8594337816 - Trace ID: a56988d9-b20a-4a82-a62b-90b9f06f8100
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)