Comments (9)
This seems like it might be an networking issue. I would advise you to do two things.
First, upgrade to the latest 4.x release of the SDK (changes are minimal in most cases but do please look over the upgrade guide!)
Seconds, if that doesn't solve the issue you can use the new logger
option to get some more output that might show where the errors lies, documentation for that here: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#logger
Let me know if either (or both) of those helps!
from sentry-laravel.
Hello, unfortunately the suggestions didn't help.
This is the whole situation that's happening:
After running php artisan sentry:publish --dsn= and accepting test event, the test event passes without errors. For some time after that when I run php artisan sentry:test the event is sent without issues. Again after some time it start giving errors but not every time until it gets to stage where it fails every time.
from sentry-laravel.
This sounds super strange, is some external tool updating your .env
file perhaps?
Or are you using config caching (you can try clearing it with php artisan config:clear
)?
Unless the config is changing this makes no sense to me 😅
from sentry-laravel.
Hey, I've got a similar problem, just that sentry now stopped working.
The error message is also not very helpful
sail artisan sentry:test
DSN discovered from Laravel config or `.env` file!
Sending test event...
There was an error sending the event.
Please check if your DSN is set properly in your `.env` as `SENTRY_LARAVEL_DSN` or in your config file `config/sentry.php`.
DSN is properly set. And it is also working. I used the same DSN for testing for the javascript integrations and javascript errors were properly captured.
But any laravel errors / exceptions are not captured.
I've migrated from 3 -> 4, then it stopped working.
Have the latest sentry-laravel
version.
I have also deleted config/sentry.php
and re-ran the artisan command.
from sentry-laravel.
Same suggestions for you to try: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#logger. Create a config/sentry.php
with:
<?php
return [
'logger' => new \Sentry\Logger\DebugFileLogger(filePath: storage_path('logs/sentry.log')),
];
Do not use config caching with this since that doesn't work :)
Anything interesting in the output?
from sentry-laravel.
I have the same problem. This is the result in sentry.log:
from sentry-laravel.
I'm sorry for not responding. I decided to go with the bug and I'm not having any issues reporting errors to sentry.
My guess is that this is some kind of a problem with sentry:test command for v4 since it's all working fine on server using integration class Integration::captureUnhandledException($exception);.
from sentry-laravel.
Related Issues (20)
- Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. HOT 1
- Livewire 3 requests are not identified as Livewire in transansaction HOT 5
- Disable packages sent to sentry HOT 1
- Add more spans outside http.route HOT 5
- Cron schedule not respection `between` HOT 6
- Failsafe system if Sentry goes down HOT 8
- In Tracing, is there consideration to add `sql.bindings` to `queryExecuted`? HOT 4
- Cron monitors not working HOT 6
- Send events after response was send to user. HOT 9
- `integrations` option does not accept callable
- Test event sent successfully but sentry web app not receiving it HOT 3
- Ignore exception "Prevent deadlock SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction" HOT 1
- `code.function` property contains full module path
- Call to undefined method Laravel\Lumen\Application::terminating() HOT 3
- Lumen does not have the `Illuminate\Routing\Events\RouteMatched event`. HOT 1
- Report missing translations
- Unable to set up sentry sdk debug logger option in Laravel 7 HOT 11
- Data not being send to Sentry HOT 2
- [Cron Monitoring] Whether to consider adding a switch configuration option for Cron monitoring? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-laravel.