In the development process , I have to write a lot http Client test interface service , Today, there is such a warning in the process of using :

Warning : Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

Later Baidu had a look , It turns out that the client uses  getResponseBodyAsString() Why .

Later, the client was changed to  getResponseBodyAsStream() solve the problem .

reason : The returned header does not have the specified length or is longer than 1M The above exception is thrown .

About http Common client errors " Warning :Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is rec" More articles about

  1. Java-httpClient Warning : Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

    Use HttpClient, It's always reported “Going to buffer response body of large or unknown size. Using getResponseBodyAsStr ...

  2. WARN Warning :Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended

    Use Apache HttpClient Send a request , A large number of WARN Warning :Going to buffer response body of large or unknown size. Using getR ...

  3. MySQL Server side & Common client errors

    Catalog (?)[+] client Server side client 1.ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query send ...

  4. ios Development —— Summary of mistakes & Summary of common errors and warnings in development ( Four )

    ios Development —— Development summary & Summary of common errors and warnings in development ( Four ) Netease lottery actual combat summary ( error ) Implementation of error summary and so on Repeated definitions and import errors of classical errors Classic error on the implementation of the parent class Notification object : Definition of controller Xcode ...

  5. 《Visual C++ 2010 Introductory tutorial 》 Series IV :VC2010 Common mistakes for beginners 、 Warnings and problems

    <Visual C++ 2010 Introductory tutorial > Series IV :VC2010 Common mistakes for beginners . Warnings and problems   This chapter will help you to explain some common mistakes . Warnings and problems , Help you to understand and solve some common problems , And learn about it ...

  6. Elasticsearch Cluster and index health status and common error description

    Before that IDC The online environment of the computer room has deployed a set of ELK Log centralized analysis system , Here is a brief summary ELK in Elasticsearch Health related issues , Elasticsearch Index state and cluster state convey different meanings . One .  ...

  7. .Net Common mistakes

    Common mistakes #1: Use references as values , Or vice versa C++ And programmers in many other languages , When I'm used to assigning values to variables , Or give a simple value , Or a reference to an existing object . However , stay C# in , Value or reference , It's up to the programmer who wrote the object ...

  8. PROTEL DXP Schematic compilation Common errors and handling methods

    One , [Warning] AUDIO.SCH Extra Pin R509-1 in Normal of part R509      [Warning] AUDIO.SCH Extra Pin R5 ...

  9. SVN Common errors and version conflict resolution

    Before that Eclipse The following is deleted by mistake svn Some of the plug-in packages , Later, when it was refitted, there were many problems , Here's the suggestion , Windows Next SVN It's best to use the desktop version , Update and submit under file manager . 1. Common mistakes #, c-format ...

Random recommendation

  1. Super simple ,spring boot add to mybatis

    Read a lot of people's blogs , Or it's too complicated , Or not added xml The way , I configured it myself , For your reference . Project screenshots 1. add to pom file <!-- Set up mybatis --> <dependency ...

  2. android The development virtual machine cannot start normally

    Click on window---perspective---DDMS--- View device status , If no device is available , It's in AVD manager Medium weight Just start , If there are devices in the list , But show offline  It can be done in the following ways ...

  3. CSS Summary and sharing of confusing knowledge points - Positioning and layout

    CSS There are four modes of positioning :static.relative.absolute.fixed, Other static Is the default value , The following are the characteristics of each : static: Static positioning , In dynamic layout flow , According to the elements in the page, first ...

  4. Linux profile File

    umask 022alias vim="/pd/vim/7.1/bin/vim"if [ -e /usr/bin/vim ]; then alias vim="/usr/ ...

  5. Use PreTranslateMessage Instead of hook functions, handle keyboard messages

    2002 About years ago , My company is developing products based on H.323 Of VoIP The telephone system ( Using the library of an Israeli company , I forgot the specific name ).  Go to the Institute of telecommunications technology to test the system , Colleagues find that there are always some inexplicable problems in processing keyboard messages , Such as delays or exceptions . I ...

  6. Big talk redis/memcache cache

    Usually , With the increase of business volume , The pressure to access the back-end database will also increase . As the pressure on database access increases , In addition to upgrading the database configuration to improve the pressure resistance of the database itself , We can also set up database cache service between application server and database server ...

  7. LINUX Two kinds of backdoor summary (suid shell And inetd)

    Premise :  You are now root user , I want to leave a back door so that I can enter again in the future . System environment :  1 dawg:~# uname -a 2 Linux dawg 2.4.20-1-386 #3 Sat Mar 22 ...

  8. JQuery Validate Use summary

    This paper refers to  http://www.cnblogs.com/linjiqin/p/3431835.html Can be in mvc or webform Project use , You can check the front-end forms easily and quickly One . Import two js ...

  9. Android list After refreshing, it still locates to the original position , solve .

    problem : There is one list, Click on item I'll do something when I'm in bed , Then reload the data , At this time, I want to click refresh again item It's still in its original position , Instead of jumping to the beginning . The implementation is as follows : 1.listview Add listening setOnScrollL ...

  10. Win32 Multithreaded programming (1) — Basic concepts

      The basic concept of kernel objects Windows The system is not open source , The interface it provides us is user mode , namely User-Mode API. When we call a API when , Need to switch from user mode to kernel mode I/O System Serv ...