Issue
Certain old angularjs versions like 1.5.11 suffer from an issue where their error URLs can get too long. These URLs are too long even for the errors.angularjs.org server.
Error messages that may appear:
- "Error: URI Too Long"
- "I/O error"
- "Header overflow"
Links:
Solution
Three routes:
Upgrade to 1.6.3 and use errorHandlingConfig
The angular.errorHandlingConfig function was added in 1.6.3, and it lets you specify
objectMaxDepth.However, this will truncate errors, which isn't great. The root cause of an error is typically mentioned last, which is the part that gets truncated.
Upgrade to 1.6.10
Version 1.6.10 strips error urls from errors, in commit 980b69. This reduces the length of the error.
Use AngularJS Error Decoder
AngularJS Error Decoder is a web page I created specifically for decoding these Angular errors. It's snappy and can handle huge URLs. Feel free to bookmark it.
Answered By - Matthias
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.