getsentry / sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
https://sentry.io
MIT License
690 stars 171 forks source link

Attempted to call an undefined method named "setTransportFactory" of class "Sentry\ClientBuilder". #851

Closed N-M closed 3 months ago

N-M commented 3 months ago

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

5.0.0

Steps to reproduce

  1. Upgraded version from 4.0 to 5.0
  2. Adjusted config to new version

Config:

Screenshot from 2024-06-17 14-08-17

Expected result

" Attempted to call an undefined method named "setTransportFactory" of class
"Sentry\ClientBuilder". " should not be presented.

Actual result

Screenshot from 2024-06-17 14-06-13

Jean85 commented 3 months ago

Did you clear the cache? Have you tried a manual rm -rf var/cache? Sometime cache generated from the older version of the packages is still present and may generate this kind of issues when launching a Symfony command (and the cache:clear command suffers from this kind of issues).

N-M commented 3 months ago

Did you clear the cache? Have you tried a manual rm -rf var/cache? Sometime cache generated from the older version of the packages is still present and may generate this kind of issues when launching a Symfony command (and the cache:clear command suffers from this kind of issues).

That was the cause of the issue. Thank you.