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
Class "Honeybadger\HoneybadgerLaravel\ContextManager" not found #91
Comments
|
Can you share the other stack trace frames (48-49)? |
|
This is strange. That class definitely exists, and it should be loaded. Can you try running |
|
Hmm, I already tried running that, but that didn't help. After yesterday I didn't experience the problem anymore locally, so perhaps it was because I shut down my Mac for the night. Don't know. About an hour ago I got an Honeybadger email that the error happened again, only on production. Don't know how it possible that I still got notified about that. Is there an email I can reach you on, so I can send you the public Honeybadger link to the error? |
Hey @ralphjsmit, feel free to email here: support@honeybadger.io — thanks! |
|
Hi @ralphjsmit, this is quite tricky. From the trace you shared, it seems the original error is thrown after the Also, can you verify that the file indeed exists on your filesystem? If you can SSH into your app's folder and I don't think your exception handler being in a different namespace should affect things. That's a Laravel issue, but this is a case of Composer not finding a class. However, I do suspect that it's something unique to your setup, maybe a Composer failure. What version of Composer are you running? |
|
Hey @shalvah, thank you for your thorough investigation and coming back to me. When I do the Breadcrumbs Contracts HoneybadgerServiceProvider.php
CommandTasks.php Exceptions Installer.php
Commands Facades Middleware
Concerns HoneybadgerLaravel.php
ContextManager.php HoneybadgerLogDriver.phpAnyway, I've removed the Thank you for the support! |
|
Alright, sure thing. |
|
I'm closing this because it's inactive. Feel free to re-open if this happens again! |
|
I still get this error randomly but when it does happen, it's seems consistent. I'm on the most recent package version. When it does happen I see 2 exceptions being thrown, the first is the one I expect, the second is: Any ideas help on how I can try to debug this issue? I suspect it's related to the middleware, as mentioned above, but I have been unable to trap exactly which one. I've just been disabling the error reporting completely when I run into it but obviously that defeats the purpose. Thanks for any help! |






What are the steps to reproduce this issue?
What happens?
When there is an error, I get this error first:
What were you expecting to happen?
The regular error message should be displayed and Honeybadger should be informed.
Any logs, error output, etc?
I can send you any information you like!
It is perhaps worth mentioning that I have my Exception Handler in the
Support/App/Exceptionsnamespace, because my Laravel project is structured according to DDD.That means that I don't have an
appfolder anymore, but rather asrcfolder withApp,DomainandSupportnamespaces. Could it be that the location of the Laravel exceptionhandler is hardcoded in Honeybadger?On the other hand, the Exception handler is just registered as a singleton in the
bootstrap/app.phpfile and it works for the 'regular' exceptions:Any other comments?
I'm using PHP 8.1.
What versions are you using?
Operating System: MacOS
Package Version: ^3.12
The text was updated successfully, but these errors were encountered: