You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
Uncaught DataCloneError: Failed to execute 'postMessage' on 'Window': function (){var paramPrefix,i,code=arguments[0],template=arguments[1],message=\"[\"+(module?module+\":\":\"\")+code+\"...<omitted>...)} could not be cloned.
caused from user agent facebookexternalhit. After some examinations it turns out to happen inside the ErrorConstructor of v1.7.4 itself.
I think the constructor itself should be more stable when an error inside occurs, probably with a try-catch block. My guess is the toDebugString() fn which calls the serializeObject() fn where this happens, where a cloning attempt is made and fails.
There I would make the code more robust.
The text was updated successfully, but these errors were encountered:
The ErrorConstructor is usually just the built-in Error constructor (so I doubt that's where the error happens). We need more info in order to understand the root cause of the problem and the most appropriate fix (although you are probably right that we should be more fault-tolerant inside toDebugString() anyway).
Can you reliably reproduce the error? If so, it would be helpful to get more context about the actual error that is thrown.
With AngularJS having entered its LTS period, I am a little reluctant to make a change in order to solve a problem we don't fully understand. It would be nice to get more info on this.
So it appears that something in your code is trying to pass the return value from a call to minerr (e.g. this function https://github.com/angular/angular.js/blob/master/src/minErr.js#L101) across a thread boundary (hence the postmessage). It is not related to the ErrorConstructor.
This is not a scenario that AngularJS supports. If you could find exactly where this was happening we could look into it, but otherwise there is not much more we can do.
Seeing lots of those errors in my app:
caused from user agent facebookexternalhit. After some examinations it turns out to happen inside the ErrorConstructor of v1.7.4 itself.
I think the constructor itself should be more stable when an error inside occurs, probably with a try-catch block. My guess is the
toDebugString()
fn which calls theserializeObject()
fn where this happens, where a cloning attempt is made and fails.There I would make the code more robust.
The text was updated successfully, but these errors were encountered: