Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

We're just getting started with Sentry in our Laravel project that has some areas with full-page Livewire components. I'm happy to have the information about the components and breadcrumbs for Livewire, these are great!

Due to some complexity with a very large component we have lots of Livewire errors complaining about components not being found though they are initialized without an issue and the page functions as needed. We are using only the Laravel Sentry package and have no JavaScript SDK configured but I can't seem to find a way to ignore these exceptions. Here's an example:

UnhandledRejection: Non-Error promise rejection captured with value: Component not found: Dq20aPw1DRYudC2S5LKd

This isn't a PHP class and I've tried a few steps to ignore the exception in the config to no avail. We used all of our spans in our first month because this exception is being reported tens of thousands of times so it needs to be filtered out before being sent to Sentry.

I've tried adding the following to our Sentry config file in Laravel but it has no effect:

'ignore_exceptions' => ['UnhandledRejection'],

The issue seems to be somewhere between PHP and JavaScript, and I can't quite figure it out. Any help with this would be very much appreciated!

You must be logged in to vote

All SDKs caputer errors by default. If you want to turn this off, set sampleRate: 0.

Replies: 1 comment · 4 replies

Comment options

This sounds like a JavaScript problem actually 😅

Do you also have the JavaScript SDK setup per chance? You will need to ignore it there not in Laravel 😉

You must be logged in to vote
4 replies
@benjibee
Comment options

This is what I thought as well, but I have only installed the Laravel package via composer. I have added the JavaScript for recording replays, but I can't imagine that would suddenly start capturing these Livewire issues.

@cleptric
Comment options

All SDKs caputer errors by default. If you want to turn this off, set sampleRate: 0.

Answer selected by benjibee
@benjibee
Comment options

Hmmm, it wasn't so clear to me that including the SDK shown in the documentation for recording replays would also capture JavaScript errors. This looks to be the source of these issues. Thanks for the help, @stayallive and @cleptric

@stayallive
Comment options

Yeah error recording is the core of what Sentry does, so you get that by default 🎉

Glad you got it figured out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.