Page MenuHomePhabricator

PaymentsWiki Error: ResizeObserver loop limit exceeded
Closed, ResolvedPublic

Description

When loading up the the dlocal UPI form over my cloudvm domain, https://paymentstest2.wmcloud.org/index.php?title=Special:DlocalGateway&appeal=JimmyQuote&payment_method=bt&payment_submethod=upi&recurring=1&uselang=en&language=en&currency=INR&amount=400&country=IN&first_name=Jimmy&last_name=Wales&fiscal_number=AAAAA9999C&submethod=upi&email=jwales%40example.com, I was seeing the following error in the logs which I don't recognize.

2023-03-21T12:42:25+00:00 281a01574e1c dlocal_gateway: 10182:10182.1 Client side error: Array (     [message] => ResizeObserver loop limit exceeded     [file] => https://paymentstest2.wmcloud.org/index.php?title=Special:DlocalGateway&appeal=JimmyQuote&payment_method=bt&payment_submethod=upi&recurring=1&uselang=en&language=en&currency=INR&amount=400&country=IN&first_name=Jimmy&last_name=Wales&fiscal_number=AAAAA9999C&submethod=upi&email=jwales%40example.com     [line] => 0     [col] => 0     [userAgent] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36     [stack] =>      [donationData] => Array         (             [amount] => 400.00             [appeal] => JimmyQuote             [email] => jwales@example.com             [first_name] => Jimmy             [last_name] => Wales             [country] => IN             [payment_method] => bt             [payment_submethod] => upi             [order_id] => 10182.1             [referrer] => paymentstest2.wmcloud.org/index.php             [utm_source] => ..rbt             [language] => en             [action] => logPaymentsFormError             [gateway] => dlocal             [fiscal_number] => AAAAA9999C             [recurring] => 1             [user_ip] => 172.20.0.1             [server_ip] => 172.20.0.7             [contribution_tracking_id] => 10182             [currency] => INR         )  )

Event Timeline

Ok, I think we can ignore this. It looks like it's a non-error error :| according to https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded

It's a shame we end up making an XHR for them. Not sure if it's worth detecting and blocking? It might be overkill.

XenoRyet triaged this task as Medium priority.Mar 21 2023, 7:58 PM

We could stop logging these, maybe by sending a list of error patterns to ignore in ext.donationInterface.errorLog.js

Change 914016 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/DonationInterface@master] Add patterns to ignore in client-side error log

https://gerrit.wikimedia.org/r/914016

Change 914016 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Add patterns to ignore in client-side error log

https://gerrit.wikimedia.org/r/914016

XenoRyet set Final Story Points to 2.