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-22 22:20:16Z]: 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: 0b525a11-a2dc-49b1-91d9-140b80553100 Correlation ID: 313ad2f3-c84a-4209-8584-59d9e4d1d3f9 Timestamp: 2026-07-22 22:20:16Z - Correlation ID: 313ad2f3-c84a-4209-8584-59d9e4d1d3f9 - Trace ID: 0b525a11-a2dc-49b1-91d9-140b80553100
(node:3756) [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-22 22:20:17Z]: 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: 70b275dc-9392-4e72-9405-da768ed93200 Correlation ID: 6da431e1-f66a-4a18-b11a-a1a0ed935c77 Timestamp: 2026-07-22 22:20:17Z - Correlation ID: 6da431e1-f66a-4a18-b11a-a1a0ed935c77 - Trace ID: 70b275dc-9392-4e72-9405-da768ed93200
Error getting the secret: invalid_client: 7000222 - [2026-07-22 22:20:17Z]: 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: 9edfd517-0886-49cd-9165-e12f92120500 Correlation ID: 544cc346-4f5d-4a90-8915-b382df256192 Timestamp: 2026-07-22 22:20:17Z - Correlation ID: 544cc346-4f5d-4a90-8915-b382df256192 - Trace ID: 9edfd517-0886-49cd-9165-e12f92120500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 22:20:17Z]: 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: a17efc91-8ec6-43ff-8980-1fc213513500 Correlation ID: 41092f14-2147-40c9-b44b-10c65694735a Timestamp: 2026-07-22 22:20:17Z - Correlation ID: 41092f14-2147-40c9-b44b-10c65694735a - Trace ID: a17efc91-8ec6-43ff-8980-1fc213513500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 22:20:18Z]: 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: a6745a82-2dd2-42a0-8163-0f5616ef4d00 Correlation ID: 761fffda-cbda-4eae-88cc-20553e257c92 Timestamp: 2026-07-22 22:20:18Z - Correlation ID: 761fffda-cbda-4eae-88cc-20553e257c92 - Trace ID: a6745a82-2dd2-42a0-8163-0f5616ef4d00
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)