Treblle / treblle-laravel

The official Treblle SDK for Laravel. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.
https://www.treblle.com/
MIT License
129 stars 21 forks source link

Getting Forbidden response appended in the response. #83

Closed Jagdish-J-P closed 11 months ago

Jagdish-J-P commented 1 year ago

Version

Description

Treblle package is throwing Forbidden exception.

I've installed package through composer and then run install command. After that command had created my account and printed API credentials. I've pasted that credentials to .env file and added middleware to the API group but after that it didn't worked as expected.

Steps to reproduce

  1. composer require treblle/treblle-laravel
  2. php artisan treblle:start
  3. Enter new email that is not registered with treblle and follow the instructions
  4. Copy printed credentials to .env file
  5. Enable treblle through app/Http/Kernel.php by adding treblle alias
  6. Add treblle middleware to api group.
  7. Make any api call and it will throw TreblleApiException with message 'Forbidden' and append that response after API response

Expected behavior

It should work as expected and if there is any exception it should log it to treblle dashboard instead of API response and if its not possible to log it should log it to log file.

cindreta commented 1 year ago

Hey @Jagdish-J-P thx for reporting this. My first instict here was to take a look at our API Gateway and try to figure out if it failed to sync you API Key. I manually sycned it so would please check and see if the problem is solved now. If it's not please, if possible, email your project ID to me on vedran@treblle.com

Jagdish-J-P commented 1 year ago

It started working when I created new project from web.