Comments (11)
Hi @andrewsurrey ,
Thanks for the feedback. This error only occurs when performing backend actions in magento 2?
from magento2-sentry.
from magento2-sentry.
Ok thanks, I'll try to reproduce this issue on 2.2.5 & 2.2.6 within 2 weeks.
from magento2-sentry.
Hi @andrewsurrey ,
I don't really can reproduce your issue. But I think this will resolve your issue. Here is why I think it's solved:
When setting an App state in a construct function there's a possibility there are random errors when monolog wants to send a message. So I refactored the first call to of the extension in the helper method isActive with the App state call and removed the setAppState in the construct function.
Happy to hear from you!
from magento2-sentry.
@rakibabu , please follow these steps to reproduce issue:
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- FLUSH CACHE
- Reload page on storefront
in my case it is magento 2.2.6 in default mode
from magento2-sentry.
I can confirm I had the same problem on my M2.2.6 instance.
Configured in default mode.
It seems it occurs when we try to reference \Psr\Log\LoggerInterface
(even in commented code!).
I tried to move to your last commit 4a815b5, and the problem is now gone.
Edit: mb, I was in default mode, not in developer mode.
from magento2-sentry.
Edit, with your last commit, I can't edit an admin role.
from magento2-sentry.
We are also encountering issues with the Area Code error. Updating to the newest version seemed to have no effect.
The error that I encounter happens during install:
php_1_d223d55492b4 | [Progress: 677 / 1358]
php_1_d223d55492b4 | [Progress: 678 / 1358]
php_1_d223d55492b4 | Installing user configuration...
php_1_d223d55492b4 |
php_1_d223d55492b4 |
php_1_d223d55492b4 | [Magento\Framework\Exception\LocalizedException]
php_1_d223d55492b4 | Area code is already set
The error doesn't seem to specifically be coming from the Sentry module, but it only occurs when the Sentry module is a part of the install process.
from magento2-sentry.
Hi All,
Thanks for the feedback. I was able to reproduce this. In version 0.5.0 the setAreaCode is removed and replaced with emulateAreaCode. In addition to that I've found a problem with the CustomerSession which also produced this error. I've proxied that class.
Release 0.5.0 is tested on Magento 2.2.7 & Magento 2.3.0.
Happy to hear your thoughts about this.
from magento2-sentry.
@rakibabu I updated module to 0.5.0 and the issue is no longer reproducible. Thanks!
from magento2-sentry.
Thank you for your feedback!
from magento2-sentry.
Related Issues (20)
- Exceptions in Consumers are not sent to Sentry
- not compatible with magento 2.4.4 HOT 4
- Feature Request: CSP Reporting
- Cannot fix CVE because of constraints caused by this extension HOT 1
- Caught exceptions are send to sentry HOT 8
- Ignore exceptions by regex HOT 3
- Allow usage of Debug IDs for uploading source maps HOT 2
- Deployment configuration ignored when "Environment Configuration Enabled" set to "No" HOT 2
- Cron Job Monitoring HOT 1
- Cron log errors are not sent to Sentry
- Feature: Add INP Support HOT 3
- polyfill.io is compromised HOT 2
- Can't install version 3.0.0 in Magento 2.4.3-p1/p2 HOT 2
- Bug: wrong product link if groups[seo][fields][product_use_categories][value] = 0 HOT 1
- Add support to filter out events HOT 12
- Exception on setup:upgrade with ver 2.4.4 and php 8.1 HOT 1
- Incompatible with monolog/monolog v2.7.0 HOT 1
- Spam in debug.log file HOT 8
- Call to undefined method JustBetter\Sentry\Plugin\MonologPlugin::addAlert() HOT 3
- Send context data passed to LoggerInterface to Sentry
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 magento2-sentry.