-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PatternSyntaxException: Illegal character #1512
Comments
@guptnis Thank you very much, but your answer does not seem to solve my problem.
|
I am also facing the same issue with feign and setting header value that contains JSON array object. Any help would be highly appreciated !!. |
I just discovered that this stopped working in v10.7.2 and later versions. So, It seems that this issue is happening because of the following commits. https://github.com/OpenFeign/feign/pull/1138/commits |
I found a solution: encode the value to prevent requestTemplate.header("roles", "{\"roles\":[\"default-role\"]}"); // It not work.
requestTemplate.header("roles", URLEncoder.encode("{\"roles\":[\"default-role\"]}"), StandardCharsets.UTF_8.name()); // It work. But I think this is unfriendly to developers. |
Hi All - Is there any update on this issue? I am sure this is breaking for many consumer of feign library. |
Hi @mr-rajeshrathod , feign is mainly run by volunteers, so if that is impacting you, feel free to raise a PR and I will review for you. |
I want to set the requestTemplate header value to an array, but an error occurs
How can I set it up so that it can work ?
The text was updated successfully, but these errors were encountered: