1.39 installation will get error: Uncaught InvalidArgumentException: Invalid Sentry DSN

edit

MediaWiki 1.39 with Sentry extension 1.39 snapshot installation will get errors:

Uncaught InvalidArgumentException: Invalid Sentry DSN: xxx in /srv/wiki.example.com/public/extensions/Sentry/vendor/sentry/sentry/lib/Raven/Client.php:227

In Raven/Client.php:

        $username = (isset($url['user']) ? $url['user'] : null);
        $password = (isset($url['pass']) ? $url['pass'] : null);
        if (empty($netloc) || empty($project) || empty($username) || empty($password)) {
            throw new InvalidArgumentException('Invalid Sentry DSN: ' . $dsn);
        }

This is because modern Sentry DSN does not use password field for authentication. Only username field for a token. Current workaround is removing empty($password), but I guess a clean fix requires some rewriting since Raven is deprecated officially. Gslin (talk) 17:51, 14 May 2023 (UTC)Reply

Return to "Sentry" page.