amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-a4a: adsense: Assertion failed

Open sparhami opened this issue 7 years ago • 4 comments

Noticed this issue when running examples/ads.amp.html

[amp-a4a] Error: amp-a4a: adsense: Assertion failed at Log.assert (amp.js:16291) at devAssert (amp.js:16730) at Resource.whenWithinViewport (amp.js:33593) at amp-ad-network-adsense-impl-0.1.js:4013

This is coming from here: https://github.com/ampproject/amphtml/blob/2277223833c75db27ca51f7abc47edc817168640/extensions/amp-a4a/0.1/amp-a4a.js#L613-L618

It looks like the value passed to whenWithinViewport is false in some cases, but the method has an assert that the value should not be false: https://github.com/ampproject/amphtml/blob/b734396b81d51370b69f5b05234e18c9cf539dd2/src/service/resource.js#L673-L674

sparhami avatar Feb 20 '19 19:02 sparhami

/to @lannka

dreamofabear avatar Feb 25 '19 22:02 dreamofabear

@keithwrightbos do you have any insight?

lannka avatar Feb 26 '19 22:02 lannka

Is this still relevant?

keithwrightbos avatar Jul 31 '19 16:07 keithwrightbos

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 21 '21 17:01 stale[bot]