Related: https://github.com/ampproject/amphtml/pull/17205
Console error is showing on the AMP pages, which is blocking the amp-ad and amp-iframe contents.
https://www.thesun.co.uk/motors/7175820/true-cost-owning-car-revealed-east-anglians/amp
On the above page we can able to see the console errors which sometime disappear. But on few continues refreshed we can able to see the error.
AMP ⚡ HTML – Version 1536699515199
When I have raised this issue with WordPress VIP, they mentioned as
If there were an issue with the amp-wp plugin, you would expect to see an AMP page fail validation because invalid AMP markup is not being removed. But in this case, the testing URL you've provided is passing AMP validation, and the JS error is happening in friendly-iframe-embed.js, which is being loaded directly from the ampproject Github repository. This leads us to believe that the issue lies in the AMP runtime JS and not within the amp-wp plugin and we would suggest opening an issue with the ampproject to see if they can identify why their runtime JS is failing in this instance.
Seen this error before.
Originated from info.create.length
in document-register-element
polyfill:
For some reason, it seems that for
info = constructors[nodeNames.get(self.constructor)];
We occasionally pass HTMLAnchorElement
as self
here, resulting info
be undefined, and thus caused the error.
/to @jridgewell
You can ignore this, it'll continue to work regardless.
We'll be releasing #17205 soon, which will fix the underlying issue.
Thanks @kevinkassimo and @jridgewell . I see #17205 is merged to master
, may I know when this will be released?
I can still test this in the current production and new canary also. @jridgewell please check. Thank you.
It's still there. Fix will involve moving to a new Custom Elements polyfill, which I'll be doing testing in the next week.
@jridgewell did you managed to test this last week? Did it worked well? Thanks
The test suite fails due to a difference in the old polyfill (which depended on the V0 native in our test suite, because we run our tests in Chrome), and the polyfill. We have a way to fix it, and I'll be working on it soon.
@jridgewell did you get a chance to work on the fix? Did the tested passed?
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates?
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates?
This is a high priority issue but it hasn't been updated in awhile. @jridgewell Do you have any updates?
What's the status of this issue? If the error is expected, is it possible to at least silence it so that it doesn't add unnecessary noise and causes alarm among developers?
I've seen several people get sidetracked in investigations, including me at least once, where they start trying to reproduce an issue, hit this error, and then think the error is responsible (because why would AMP throw an error when everything is working normally?)
We have this prioritized for this quarter, likely starting in Feb.
I've now seen two more situations where this confused people trying to debug unrelated issues.
This should be higher than P3
@jridgewell I'm seeing a significant (400x) increase in volume in the error with the latest canary. I know you mentioned that there shouldn't be any problem caused by this error, but the increase in errors seems to be a bit odd to me. Not sure if there is anything odd going on here.
Edit: it seems like the change in volume might be due to us going back to the original custom elements polyfill.
Did @ampproject/a4a team start shipping FIE in more browsers? Otherwise, it's safe to ignore.
it seems like the change in volume might be due to us going back to the original custom elements polyfill.
We never actually turned on the new polyfill, it was just removed from prod builds to save space. We'll be doing the CE experiment in the next few months, likely.
This is still an issue. This error fires on ad loads. We have ads loaded as they scroll into view. Long after the page has loaded, the ad comes into view and the error fires. Error fires for regular ads as well.
Still checking to see if anyone has looked into this issue. This bug is still out in the wild for amp ads. If you send me a message I can send you a staging URL revealing the error regularly.
We already have the fix, but it's not been deployed yet. We'll be doing it soon. In the meantime, this error has no effect on the page, you can safely ignore it.
Thank you!!!! Much appreciated.
Is the fix already deployed? We still see this error message in console.
The fix is still waiting to go out into experiment phase. We'll be doing that sometime this quarter.
Ping on this. It's not urgent or critical but the first time I came across this it's still annoying since I thought something was wrong. Thanks.
The experiment is live (though it's not possible to opt into receiving the experimental code). Initial results look good, but we still need more time before shipping this wider.
FYI this came up again today, where someone spent a long time debugging down the wrong path thinking that this error message was the reason an unrelated thing wasn't working
https://github.com/ampproject/amphtml/pull/25141 We're close!
Most helpful comment
This should be higher than P3