Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type cast exception in SurgicalDebugFilter @ line 74 #283

Open
vtahlani opened this issue Dec 5, 2016 · 4 comments
Open

Type cast exception in SurgicalDebugFilter @ line 74 #283

vtahlani opened this issue Dec 5, 2016 · 4 comments
Labels

Comments

@vtahlani
Copy link

vtahlani commented Dec 5, 2016

Getting exception String can't be cast to URL at line 74 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.

RequestContext.currentContext.routeHost = routeHost.get();

if I replace above with below then it works fine.

RequestContext.getCurrentContext().setRouteHost( new URL(routeHost.get()));

@AlexWei2013
Copy link

when I write a filter which extended the SurgicalDebugFilter. I have same problem when seted zuul.debug.host="localhost:8080" in property file.

@vtahlani
Copy link
Author

vtahlani commented Dec 7, 2016

I have fixed that issue. Please try now.

@mind-kdas
Copy link

@vtahlani I am still facing exactly the same issue which you reported even now. I am using zuul-core-1.3.0.jar. I also searched for your commit but could not find it. Could you please recheck the commit and also confirm if the version I am using is correct or not.

Copy link

github-actions bot commented Dec 6, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants