-
Notifications
You must be signed in to change notification settings - Fork 131
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 read properties of undefined (reading 'origin') #2824
Comments
Hi @rchl , Which version of the adyen-web are you using? Is it happening only on Android 10 or also in another versions? And do you know the which browser by any chance? |
Happen to be using Android 10 collects majority of the crashes but it's also occasionally triggered on other versions (note that not all of that can be trusted since UA can be spoofed): As far as user agent it's typically something like
|
It seems to be on Chrome on Android 10. We will run some tests using Browserstack and hopefully we can catch something. I will keep you posted. |
@rchl I can see that there are two situations where this code is executed:
Do you know by any chance in which part of the flow this error happens? And do you have visibility if it is a critical error that crashes the UI/checkout or if it is an uncaught error only? |
Sorry, I don't have visibility into those details and not sure if it's a critical error that prevents people from completion the transaction. |
Hi @rchl - Did you notice any difference in the reports since you upgraded your version? I ran some tests on Samsung Galaxy S20 with Android 10 using Chrome and unfortunately I didn't manage to reproduce the problem. |
It's still happening (about 150 events a day). The failing requests are in minority in general so it could have something to do with some special browser versions. It's certainly not a common crash. |
@rchl We can add the optional chaining operator you request but I'm thinking this postMessage handler of ours ( |
No, I'm not able to determine if this affects payment but I would guess that it doesn't or we'd know about it. I think that it's just the right thing to null-check the |
Fixed in #2894 |
Our production systems receive a relatively large number (8K a month) of client-side errors due to this code:
adyen-web/packages/lib/src/utils/get-process-message-handler.ts
Line 19 in 2f59a65
The code crashes because
event.originalEvent
seems to beundefined
.99% of crashes are triggered from Chrome Mobile devices on Android 10.
Suggested fix (adding optional chaining operator):
The text was updated successfully, but these errors were encountered: