Giter Site home page Giter Site logo

Comments (6)

devedup avatar devedup commented on September 22, 2024

Sorted...

I tried by running:
php artisan clear-compiled

Which didn't work. So had to manually delete:
bootstrap/cache/*

from laravel-airbrake.

devedup avatar devedup commented on September 22, 2024

Actually, I'm having to do this each time I'm running composer update.

I'm not a PHP expert - but this doesn't seem normal? Is it something to do with this package?

from laravel-airbrake.

TheoKouzelis avatar TheoKouzelis commented on September 22, 2024

Hi @devedup

Can you show me how you are using this package. For example are you using the "Custom Channel", the "Exception Handler" or the "Monolog Configuration.

Can you also provide the version of PHP and Laravel please and a full stack trace.

from laravel-airbrake.

devedup avatar devedup commented on September 22, 2024

PHP 7.3.21, however same issue on 7.4.9

It's happening since I update to Laravel 8.31.0

Not quite a stack trace, but this is what I get at the end of composer update:

remote: Generating optimized autoload files        
remote: > Illuminate\Foundation\ComposerScripts::postAutoloadDump        
remote: > @php artisan package:discover        
remote: 
remote: In Container.php line 1057:        
remote:                                                                                        
remote:   Unresolvable dependency resolving [Parameter #0 [ <required> $opt ]] in cla          
remote:   ss Airbrake\Notifier                                                                 
remote:                                                                                        
remote: 
remote: Running Opimizations        
remote: 
remote: In Container.php line 1057:        
remote:                                                                                        
remote:   Unresolvable dependency resolving [Parameter #0 [ <required> $opt ]] in cla          
remote:   ss Airbrake\Notifier                                                                 
remote:                                                                                        
remote: 
remote: 
remote: In Container.php line 1057:        
remote:                                                                                        
remote:   Unresolvable dependency resolving [Parameter #0 [ <required> $opt ]] in cla          
remote:   ss Airbrake\Notifier                                                                 
remote:                                                                                        
remote: 
remote: 
remote: In Container.php line 1057:        
remote:                                                                                        
remote:   Unresolvable dependency resolving [Parameter #0 [ <required> $opt ]] in cla          
remote:   ss Airbrake\Notifier                                                                 
remote:                                                                                        
remote: 
remote: Done  

I'm using both the Monolog config:

'airbrake' => [
'driver' => 'custom',
'via' => Kouz\LaravelAirbrake\AirbrakeLogger::class,
'level' => 'error',
],

and in the report exception handler in Handler.php

public function report(Throwable $e)
{
if ($this->shouldReport($e)) {
$airbrakeNotifier = \App::make('Airbrake\Notifier');
$airbrakeNotifier->notify($e);
}
parent::report($e);
}

It's all been working perfectly - just noticed this error now trying to do a composer update.

from laravel-airbrake.

TDiblik avatar TDiblik commented on September 22, 2024

Hi, did you resolved this issue? I am currently looking at the same problem...
Thanks

from laravel-airbrake.

TheoKouzelis avatar TheoKouzelis commented on September 22, 2024

I haven't been able to replicate this issue

from laravel-airbrake.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.