• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API Exceptions & Detailed Errors Shown in Production Environment CI 4.04


I am using version. 4.04 I created some restful APIs and was checking the exception handling by using wrong controller names etc in PRODUCTION environment.

To my surprise its showing detailed errors while I have already set environment to production in .env file. In the browser its not showing anything but in postman its sending detailed error reports.

Do I need to make any further changes to stop this detailed error reporting in APIs.


You could try setting it in the .htaccess file at top.

SetEnv CI_ENVIRONMENT 'production'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.