Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Recursive $digest() loop produces invalid error message link #12024

Open
@jakobmaier

Description

@jakobmaier

When producing invalid linkage between scope values, the digest loop might run into an infinite recursion and aborts after 10 steps.

This correctly produces the following error message:

Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [...]

However, in my case, the following link has been produced to get further information:

http://errors.angularjs.org/1.4.0/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A197%2C%22oldVal%22%3A196%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%2C%22oldVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22Telefon%22%7D%2C%7B%22msg%22%3A%22contactForm.typ.%24error.required%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A45%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.required%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A100%7D%2C%7B%22msg%22%3A%22contactForm.comment.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A198%2C%22oldVal%22%3A197%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%2C%22oldVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22Telefon%22%7D%2C%7B%22msg%22%3A%22contactForm.typ.%24error.required%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A45%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.required%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A100%7D%2C%7B%22msg%22%3A%22contactForm.comment.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A199%2C%22oldVal%22%3A198%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%2C%22oldVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22Telefon%22%7D%2C%7B%22msg%22%3A%22contactForm.typ.%24error.required%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A45%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.required%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A100%7D%2C%7B%22msg%22%3A%22contactForm.comment.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A200%2C%22oldVal%22%3A199%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%2C%22oldVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22Telefon%22%7D%2C%7B%22msg%22%3A%22contactForm.typ.%24error.required%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A45%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.required%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A100%7D%2C%7B%22msg%22%3A%22contactForm.comment.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A201%2C%22oldVal%22%3A200%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%2C%22oldVal%22%3A%22%3C%3Calready%20seen%3E%3E%22%7D%2C%7B%22msg%22%3A%22fn%3A%20regularInterceptedExpression%22%2C%22newVal%22%3A%7B%22typ%22%3A%22Telefon%22%2C%22kontakt%22%3A%22%22%2C%22comment%22%3A%22%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22Telefon%22%7D%2C%7B%22msg%22%3A%22contactForm.typ.%24error.required%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A45%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.required%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22contactForm.kontakt.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22fn%3A%20ngModelWatch%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20constantWatch%22%2C%22newVal%22%3A100%7D%2C%7B%22msg%22%3A%22contactForm.comment.%24error.maxlength%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20()%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20formCtrl%5BinputName%5D%20%26%26%20formCtrl%5BinputName%5D.%24invalid%3B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%22%2C%22newVal%22%3Afalse%7D%5D%5D

However, the link is too long and doesn't work since the server closes the connection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions