-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cannot use object of type Illuminate\Support\Facades\Config as array When using MongoDB #88
Comments
@aconital Hey there, there's something definitely off here; Firstly, you're completely right, Secondly, the error from Laravel I can't quite pinpoint; I can see Scout is reaching its predefined span limit (which prevents us from consuming too much memory), but I'm not sure why Laravel's |
Thanks for your quick response @asgrim. So this happens especially when we create a lot Models using Factory method for our unit tests. The models are using the MongoDB connection. Here is the output of
and out put of php -v:
|
Not sure if this is related but we experience the same scenario where memory usages keeps increasing laravel/framework#44214 |
First up, the issue with MongoDB monitoring occuring even when monitoring is disabled has now been fixed in However, I can't seem to reproduce the issue you have with the framework version you have. In the default Laravel application setup, |
@asgrim thanks for the quick fix. We'll keep and eye on the Config issue to see if we can pinpoint the problem. I'm hoping this is just an issue when we run PHPUnit tests and not in production. Thanks again |
Yep - please do let us know; not sure why the config facade would be assigned to |
We are using MongoDB with our laravel application and use the jenssegers/laravel-mongodb package. After we installed scout-apm-laravel our phpunit tests are failing with the following crash message. Is this a known issue?
We even have SCOUT_MONITOR set to
false
but not sure why this package is still processing stuff.The text was updated successfully, but these errors were encountered: