Caching application/json
responses
#1523
Replies: 1 comment
-
@InterferencePattern These looks like chunked encoded response. Cache response plugin do not process the response by itself. They are dumped as is. You will need to use the chunked parser to make sense out of these.
You may end up seeing this if requests are being pipelined i.e. same connection used for multiple requests. This is normal and can be expected. As mentioned above, cache response plugin do not process the data, it simply keeps dumping it to files. But you can always post-process these files as you wish. Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm seeing some confusing results when I cache larger JSON responses, and was wondering what I'm missing.
I'm using
CacheResponsesPlugin
to cache the results like so:.txt
files contain some strange characters within the JSON dictionary:Are these characters (
1e6f
,bb6
,0
) due to the JSON being chunked? Am I missing a step to reassemble the dictionary?Another question:
2. In some other instances, I'm seeing more than 1 response logged in a single file (particularly when I get paginated requests from a single endpoint. The responses from these two endpoints may end up in the same TXT starting with:
GET /endpoint?limit=30&offset=0 HTTP/1.1
andGET /endpoint?limit=30&offset=30 HTTP/1.1
. Is this intended?Beta Was this translation helpful? Give feedback.
All reactions