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 14:39: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: 969eedcd-33ec-4d94-a3d1-3619b2640200 Correlation ID: 5bb4a21b-f19f-41fb-831f-35cfa7f3202c Timestamp: 2026-07-22 14:39:00Z - Correlation ID: 5bb4a21b-f19f-41fb-831f-35cfa7f3202c - Trace ID: 969eedcd-33ec-4d94-a3d1-3619b2640200
(node:860) [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 14:39: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: 7298f0a8-50bb-42ec-9085-2ee717712900 Correlation ID: 2c36df8e-e7f6-4a40-bb27-c506f7a3d7df Timestamp: 2026-07-22 14:39:01Z - Correlation ID: 2c36df8e-e7f6-4a40-bb27-c506f7a3d7df - Trace ID: 7298f0a8-50bb-42ec-9085-2ee717712900
Error getting the secret: invalid_client: 7000222 - [2026-07-22 14:39: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: aab187c6-38bb-422f-9619-7a5d88154300 Correlation ID: 277d173c-3d6f-48c3-8045-c23c70befa28 Timestamp: 2026-07-22 14:39:01Z - Correlation ID: 277d173c-3d6f-48c3-8045-c23c70befa28 - Trace ID: aab187c6-38bb-422f-9619-7a5d88154300
Error getting the secret: invalid_client: 7000222 - [2026-07-22 14:39: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: 196335e1-e9af-48c4-82cf-7c073b782d00 Correlation ID: 1d73c803-4ee6-480c-840e-5156976a957f Timestamp: 2026-07-22 14:39:01Z - Correlation ID: 1d73c803-4ee6-480c-840e-5156976a957f - Trace ID: 196335e1-e9af-48c4-82cf-7c073b782d00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 14:39:02Z]: 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: 1ef0fe5f-b31d-4500-8730-a9f111402e00 Correlation ID: 5acf3482-e076-43f2-b44b-77b427a86b4a Timestamp: 2026-07-22 14:39:02Z - Correlation ID: 5acf3482-e076-43f2-b44b-77b427a86b4a - Trace ID: 1ef0fe5f-b31d-4500-8730-a9f111402e00
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)