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:
⚠️ DATABASE_URL or Secret not found in process.env. Skipping database config preloading.
(node:2342892) [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)
[x1B][31m[Nest] 2342892 - [x1B][39m09/14/2026, 1:17:02 AM [x1B][31m ERROR[x1B][39m [x1B][38;5;3m[ExceptionHandler] [x1B][39mError: Environment variable "Secret" must be set to securely encrypt API keys.
at new EncryptionService [x1B][90m(E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\src\[x1B][39mconfig\encryption.service.js:58:19[x1B][90m)[x1B][39m
at Injector.instantiateClass (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\injector.js:422:19)
at callback (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\injector.js:70:45)
[x1B][90m at process.processTicksAndRejections (node:internal/process/task_queues:105:5)[x1B][39m
at async Injector.resolveConstructorParams (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\injector.js:170:24)
at async Injector.loadInstance (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\injector.js:75:13)
at async Injector.loadProvider (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\injector.js:103:9)
at async E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\instance-loader.js:56:13
at async Promise.all (index 4)
at async InstanceLoader.createInstancesOfProviders (E:\IISApplications\FoodInspectionBahamasProd\Backend\dist\node_modules\[x1B][4m@nestjs\core[x1B][24m\injector\instance-loader.js:55:9)