Skip to content
Advertisement

Sentry Transport errors

I’m trying to implement Sentry in our application.

I’ve used sentry/sdk but got some errors (probably due to some PHP settings), so I’m now trying to switch the transport method.

I removed sentry/sdk from my composer.json file and replaced it with sentry/sentry and php-http/guzzle7-adapter. Please note that in the documentation, they use the guzzle6-adapter, but that gave dependency errors (I was already using "guzzlehttp/guzzle": "^7.3", so I need to use version 7).

When now trying to initialize Sentry, I get the following error:

JavaScript

It is a custom application, so I cannot use e.g. the Sentry Laravel package.

Advertisement

Answer

The docs are incorrect at the moment and reference the old dependencies required.

In case that you want to use Guzzle the following should work:

JavaScript

This recreates the current SDK metapackage dependencies:

JavaScript

Except that symfony/http-client was replaced by guzzlehttp/guzzle.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement