The official Treblle SDK for Laravel. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.
I am getting following error after installing treblle , following in rollbar stack.
ErrorException: Undefined array key 1
File "/var/www/html/app/vendor/treblle/utils/src/Masking/FieldMasker.php", line 54
File "/var/www/html/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php", line 254, in Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
File "/var/www/html/app/vendor/treblle/utils/src/Masking/FieldMasker.php", line 54, in Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}
File "/var/www/html/app/vendor/treblle/treblle-laravel/src/Factories/DataFactory.php", line 95, in Treblle\Utils\Masking\FieldMasker::mask
File "/var/www/html/app/vendor/treblle/treblle-laravel/src/Middlewares/TreblleMiddleware.php", line 82, in Treblle\Factories\DataFactory::make
File "/var/www/html/app/treblle/treblle-laravel/src/Middlewares/TreblleMiddleware.php", line 55, in Treblle\Middlewares\TreblleMiddleware::collectData
File "/var/www/html/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 258, in Treblle\Middlewares\TreblleMiddleware::terminate
File "/var/www/html/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 213, in Illuminate\Foundation\Http\Kernel::terminateMiddleware
File "/var/www/html/app/public/index.php", line 55, in Illuminate\Foundation\Http\Kernel::terminate
Explain the context and how you encountered this bug.
I am getting this error on particular API. I am not sure the reason.
treblle.php
<?php
return [
/*
* A valid Treblle API key. You can get started for FREE by visiting https://treblle.com/
*/
'api_key' => env('TREBLLE_API_KEY'),
/*
* A valid Treblle project ID. Create your first project on https://treblle.com/
*/
'project_id' => env('TREBLLE_PROJECT_ID'),
/*
* Define which environments should Treblle ignore and not monitor
*/
'ignored_environments' => env('TREBLLE_IGNORED_ENV', 'dev,test,testing'),
/*
* Define which fields should be masked before leaving the server
*/
'masked_fields' => [
'password',
'pwd',
'secret',
'password_confirmation',
'cc',
'card_number',
'ccv',
'ssn',
'credit_score',
'api_key',
'api_token'
],
];
Version
Description
I am getting following error after installing treblle , following in rollbar stack.
Explain the context and how you encountered this bug. I am getting this error on particular API. I am not sure the reason.
treblle.php
More details :
Steps to reproduce
Expected behavior
Explain what result you expected to see.
Notes
Any additional useful informations, like related issues, ...