rollbar / rollbar-php-symfony-bundle

Bundle for Symfony that integrates Rollbar tracker
MIT License
28 stars 25 forks source link

Invalid type for path "rollbar.exception_sample_rates". Expected scalar, but got array. #25

Closed JoydS closed 6 years ago

JoydS commented 6 years ago

Hello, It's impossible for us to use exception_sample_rates configuration. Here the error message we have :

Invalid type for path "rollbar.exception_sample_rates". Expected scalar, but got array.

Here the configuration :

exception_sample_rates:

  • \Symfony\Component\Security\Core\Exception\AccessDeniedException: 0
  • \Symfony\Component\HttpKernel\Exception\NotFoundHttpException: 0
  • \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: 0
  • \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException: 0
rivkahstandig3636 commented 6 years ago

Thanks for reporting this! We'll take a look.

JoydS commented 6 years ago

Any update about this issue ? Cause I can't use this bundle without this :(

rivkahstandig3636 commented 6 years ago

@ArturMoczulski Can you please take a look at this?

ArturMoczulski commented 6 years ago

Yes. This needs to get fixed. I'm adding this to the next release.

JoydS commented 6 years ago

Hi guys, do you have any update on this issue ? Thank you !

danielfuerst commented 5 years ago

The following samoes not seem to work:

 exception_sample_rates:
       \Symfony\Component\Security\Core\Exception\AccessDeniedException: 0
       \Symfony\Component\HttpKernel\Exception\NotFoundHttpException: 0
       \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: 0
       \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException: 0

and

exception_sample_rates:
- \Symfony\Component\Security\Core\Exception\AccessDeniedException: 0
- \Symfony\Component\HttpKernel\Exception\NotFoundHttpException: 0
- \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: 0
- \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException: 0

still throws the error rollbar.exception_sample_rates". Expected scalar, but got array

Edit: The config needs to look like below (without preceding slash).

 exception_sample_rates:
       Symfony\Component\Security\Core\Exception\AccessDeniedException: 0
       Symfony\Component\HttpKernel\Exception\NotFoundHttpException: 0
       Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: 0
       Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException: 0