Description
When installing sentry using the PSR-7
bridge with the nyholm/psr7
package, I get the following error when testing against an invalid host:
<!-- Unable to parse URI: https:/// (500 Internal Server Error) -->%
The above error is coming from the nyholm/psr7
URI class as it is trying to pass an invalid URI and throws an exception.
Symfony should just raise the SuspiciousOperationException
and return a 400
error - which it does without Sentry installed - but with the above configuration always returns a 500
.
On a similar setup with sentry/sentry-symfony:^3.5.3
I can't reproduce this issue.
Is there some configuration I am missing?
Versions:
Symfony 4.4.19
sentry/sdk 3.1.0
sentry/sentry 3.2.0
sentry/sentry-symfony 4.0.3
I have created an empty Symfony 4.4 project as an example: https://github.com/pavlakis/symfony-4.4-sentry/blob/main/README.md