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
Getting ClassCast exception in SurgicalDebugFilter. I tried to set zuul.debug.host to some IP (XX.XX.XX.XX), IP & port (XX.XX.XX.XX:YYYY) and http://XX.XX.XX.XX:YYYY but still getting type cast error.
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'http://localhost:9010' with class 'java.lang.String' to class 'java.net.URL'
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:405) ~[groovy-2.4.10.jar!/:2.4.10]
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319) ~[groovy-2.4.10.jar!/:2.4.10]
This would result in error anyway since RequestContext.currentContext.routeHost is URL type but routeHost.get() would return string. So, the class cast exception seems fine. Let me know if I am using it wrongly or my understanding is incorrect.
The text was updated successfully, but these errors were encountered:
Getting ClassCast exception in SurgicalDebugFilter. I tried to set zuul.debug.host to some IP (XX.XX.XX.XX), IP & port (XX.XX.XX.XX:YYYY) and http://XX.XX.XX.XX:YYYY but still getting type cast error.
zuul config:
As per the code of SurgicalDebugFilter(https://github.com/Netflix/zuul/blob/v1.3.0/zuul-core/src/main/groovy/com/netflix/zuul/filters/SurgicalDebugFilter.groovy):
This would result in error anyway since RequestContext.currentContext.routeHost is URL type but routeHost.get() would return string. So, the class cast exception seems fine. Let me know if I am using it wrongly or my understanding is incorrect.
The text was updated successfully, but these errors were encountered: