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.

Truncated JSON header value with @Headers

See original GitHub issue

Observed 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:closed
  • Created 2 years ago
  • Reactions:17
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
lavoiej1commented, Apr 14, 2022

Same problem here with the @RequestHeader annotation of spring-cloud-starter-openfeign library. The 3.1.1 version uses feign-core 11.8.

6reactions
vinz486commented, Nov 22, 2021

The annotation based @Header should be different from the .header(...) method. A solution could be a .headerRaw(...) method.

Read more comments on GitHub >

github_iconTop 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 >

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