-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different errors while tyring to drupal drush #862
Comments
The issue may lie around this line:
Can you try to disable the |
You should check for the value of |
yes, You can find the backtrace here: |
Thanks! So this is the culprit: sentry-php/src/EventFactory.php Line 97 in 75118ea
|
Hi,
I'm trying to debug some issues with drupals cache layer using sentry, but encountered some problems. I'm using v2 of the library without the raven module.
I want to basically send a custom event if a certain cache id is set, so that I can debug what causes the faulty cache entry. My code basically looks likes this:
This works for web requests, but when I run drush, which works over the CLI, for example for cron requests or refreshing the cache periodically, I get some error messages.
The first issue is that sentry expects
$_SERVER['HTTP_USER_AGENT']
to be a string or a numeric value. Since drupal is called from the CLI there is no user agent and I get the following error:I can get passed that by setting the user agent to an empty string manually. If I do that, the second issue arrises. I get a lot of this warnings and my drush process hangs:
Is there something I have to set if I want to use sentry with php script called via bash, i.e. not a web request?
The text was updated successfully, but these errors were encountered: