Truncated JSON header value with @Headers
See original GitHub issueObserved on versions: 11.2, 11.4 Not reproducible on version: 10.1.0
When passing a JSON string as @Param to @Headers the string gets truncated.
Example:
{"some": "value", "other": "value"}
Gets truncated to:
{"some": "value", "other"}
Code to reproduce: https://github.com/daczczcz1/feign-bug-reproduction
Issue Analytics
- State:
- Created 2 years ago
- Reactions:17
- Comments:14 (4 by maintainers)
Top Results From Across the Web
How to stop Content-Length header truncating short JSON ...
Try to set the following response headers: "headers" = { "Content-Type" = "content-type: application/json; charset=UTF-8" "Content-Length" = Len(json) }.
Read more >Response Header value Truncates after a particular length
Solved: When I try to retrieve the response header (via java script or assign message)value it truncates at some length , for e.g...
Read more >JSON response getting truncated
The parsing truncated the result due a Decimal value.0100. Json was not ... In this example, the request headers and truncated JSON request...
Read more >Truncated or oversized response headers received from ...
Truncated or oversized response headers received from daemon process ... Header set Access-Control-Allow-Origin "*" ... import json, requests, re
Read more >http-client HEADER Authorization: Bearer token length truncated
keylget cfgs HEADERS headers. set udata {} keylset udata Content-Type { application/json } keylset udata Authorization { Bearer ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same problem here with the
@RequestHeaderannotation of spring-cloud-starter-openfeign library. The 3.1.1 version uses feign-core 11.8.The annotation based
@Headershould be different from the.header(...)method. A solution could be a.headerRaw(...)method.