-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sentry captureException return wrong/not matched event_id with what logged on server #1940
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
Comments
Sorry for the late reply but I am not able to reproduce this. |
Closing due to the issue getting out-dated. Feel free to ping me to reopen it if it's still relevant. |
@kamilogorek I still get the same problem . And I check the compliled js file, I find that BaseClient.prototype.captureEvent = function (event, hint, scope) {
var _this = this;
var eventId = hint && hint.event_id;
this._processing = true;
this._processEvent(event, hint, scope)
.then(function (finalEvent) {
// We need to check for finalEvent in case beforeSend returned null
eventId = finalEvent && finalEvent.event_id;
_this._processing = false;
})
.catch(function (reason) {
utils_1.logger.error(reason);
_this._processing = false;
});
return eventId;
};
Hub.prototype.captureEvent = function (event, hint) {
var eventId = (this._lastEventId = utils_1.uuid4());
this._invokeClient('capnureEvent', event, tslib_1.__assign({}, hint, { event_id: eventId }));
return eventId;
}; same . |
@liyechen can you provide some repro case showcasing this issue? |
@kamilogorek |
Hi. In my case I use the default configuration but I'm also catching global
|
I have the same issue with Sentry.captureEvent() While Sentry.captureMessage( ... ) returns the correct event Id, Sentry.captureEvent( ... ) returns a different event Id. |
I have the same issue in @sentry/react version 7.3.0, as @L6Echo commented. |
hi @aliaz0 do you have some more specific information examples when you run into this issue? So we might try to reproduce and see if the root cause |
Hi @smeubank
And the ErrorHandler component:
The logged event id: The returned id from API: Event id in sentry: |
I'm currently experiencing this error in production, and not in development. |
@Eigilak interesting. Thanks for reporting! If you could provide a reproduction example we can try and fix this. |
Config:
(is placed as the parent component of the "create-react-app"
A snippet of our fallback component
Is there anything else you need? :) |
@Eigilak sadly this is not enough to reproduce the issue. :/ We've attempted to reproduce this ourselves before and failed. Can you provide a minimal example we could clone? Also, just because we haven't tried it with react 18 yet. Do you happen to use it? |
Noticing the same issue with
|
@thnk2wn can you provide a reproduction example? Thanks! |
We have the same issue with If we use |
@edwinKsyos do you have a reproduction example? Thanks! |
Package + Version
@sentry/browser": "^4.6.4"
@sentry/core": "4.6.4"
@sentry/types": "4.5.3"
@sentry/utils": "4.6.4"
Version:
Description
Raven.js
client and it was working, But when we decided to upgrade to newSentry
official SDK for angular2@sentry/browser
, We noticed strange behavior afterSentry
log error bycaptureException
returnevent_id
&Sentry.lastEventId()
neither matched nor exists withevent_id
that logged onSentry 9.0.0
, This happened when passerror
tocaptureException
, But i works withcaptureException
and when passnew Error(msg)
, What i expect is whencaptureMessage
error with stackTrace makeSentry
client behave wrong when generateevent_id
.The text was updated successfully, but these errors were encountered: