notamedia/yii2-sentry

problems with ip permissions errors

newscloud opened this issue · 1 comments

Hi, I went back and looked your suggestion (#10) ... the example I gave you had an extra ] closing the components array. I am still getting this error all the time when search engines / scanners hit api.meetingplanner.io

https://screencast.com/t/oxpdAwhpssJn

return [ 'id' => 'app-api', 'basePath' => dirname(__DIR__), 'controllerNamespace' => 'api\controllers', 'bootstrap' => ['log'], 'components' => [ 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'notamedia\sentry\SentryTarget', 'dsn' => 'http://'.$config['sentry_key_public'].':'.$config['sentry_key_private'].'@sentry.io/'.$config['sentry_id'], 'levels' => ['error', 'warning'], 'context' => true, // Write the context information. The default is true. ], ], ], 'errorHandler' => [ 'errorAction' => 'service/error', ], ...

Resolved this. It was in debug mode on the prod server :( :( :( !!! My fault.