question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feign HeaderTemplates adds an extra space to date headers after commas

See original GitHub issue

HeaderTemplates#expand(Map<String, ?>) adds space after each comma in headers. This causes an issue when converting date that uses the EEE, d MMM yyyy HH:mm:ss Z format.

Example Client code sends Wed, 4 Jul 2001 12:08:56 -0700 Provider expects Wed, 4 Jul 2001 12:08:56 -0700 Provider receives Wed, 4 Jul 2001 12:08:56 -0700 please note the extra space between the , and 4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jjz921024commented, Oct 30, 2020

hi, i made pr #1295 for fix this issue, but CI build failed because of The command "./travis/no-git-changes.sh" exited with 1 i don’t know how to make it build successfully

Looks like it’s complaining about code formatting; did you see this in the build output?

Please run 'mvn clean install' locally to format files.

At a guess I’d say it’s because you have two blank lines above your new unit test method, and the formatter expects only one. But I guess mvn clean install will fix this for you.

Thank for you reply. you are right, it is caused by formatting, but it’s because there are blank lines in import statement, not unit test method

0reactions
superfive666commented, Jan 19, 2022

@deniskichan You just need to manipulate the headers you sent in each individual requests. But have you tried upgrade to the newest version first?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using @Headers with dynamic values in Feign client + Spring ...
I found the following issue on github and one of the commenters (lpborges) was trying to do something similar using headers in @RequestMapping...
Read more >
Index (Feign Core 10.1.0 API) - Javadoc.io
Targets a template to this target, adding the base url and any target-specific headers or query parameters. apply(RequestTemplate) - Method in class feign....
Read more >
Feign Makes Writing Java Http Clients Easier - Morioh
Feign uses tools like Jersey and CXF to write java clients for ReST or SOAP services ... @Headers, Method, Type, Defines a HeaderTemplate...
Read more >
Setting Request Headers Using Feign - Baeldung
In the above code, the header Accept-Language is included in all APIs since it is applied to the BookClient. However, the create method...
Read more >
OperatorFabric Documentation - GitHub Pages
Docker install with 4Gb of space. 16Gb of RAM. 2. Install and run server. To start OperatorFabric, you first need to clone the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found