web Anterior segment anomaly :

The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers

Description of the exception : The client cannot process the data characteristics returned by the server ( Format )

1. stay http In the request header accept Fields define the data format that the client can handle ,

in fact , The request shown in the figure below can receive all the responses from the server MIME type

2. The request shown in the figure below does not specify accept Field , By default, it can handle html,text Respond to ; At this point, if the server response is application/json Then the front end cannot process and report http 406 error

3. solve http 406 You usually need to understand the nature of the service response MIME type , Then add the attribute to the request header

POSTMAN Request received garbled code http 406 More related articles about mistakes

  1. taotao Service Testing http The request needs to be returned json When 406 Error handling

    @Test public void doPost() throws Exception { CloseableHttpClient httpClient = HttpClients.createDef ...

  2. postman Chinese garbled problem in test request parameters

    use IDEA When debugging code , use postman The test request url, Find out post perhaps get If the parameter in the request is in Chinese , The parameters obtained in the background are garbled , Generally speaking, there are two aspects The party who sent the request :postman The problem of The party accepting the request :tomca ...

  3. SpringMVC Of AJAX Ask for the newspaper 406 error

    SpringMVC Of AJAX Ask for the newspaper 406 There are two reasons for the mistake :1.jackson The package did not introduce 2. If it has been introduced jackson I'll pay you back 406 Error of , It's possible then that url The path is a .html ending , But the data returned ...

  4. Debug error , Please go back to the source of the request , Re launch the request . Error code insufficient-isv-permissions The reason for the error : ISV Insufficient authority , It is recommended to check whether the corresponding functions have been added in the developer center

    Pick up H5 Alipay mobile phone payment time , The form has been sent to the page , Alipay responds to debugging errors , Please go back to the source of the request , Re launch the request . Error code  insufficient-isv-permissions  The reason for the error : ISV Insufficient authority , ...

  5. use ajax Submit a request , expect Json return 406 The wrong solution !

    Under normal circumstances, in Controller The client is already configured @ResponseBody    @RequestMapping   return Json Format data happen 406 error , You should check whether the submitted request path contains .html ...

  6. SpringMVC annotation @RequestMapping And produces Attributes lead to 406 error

    I don't say much nonsense , With all of you , Just look at the picture and talk , Dare you ? The solution to this problem on the Internet is rough , Even this time I killed it by coincidence , But it also does not deny that online targeting 406 Solutions to errors , It could be in a variety of situations 406 Well ? My process this time is ...

  7. Spring MVC Rest service return json newspaper 406 The wrong solution

    @ResponseBody & @RequestBody @RequestBody take HTTP The request body is inserted into the method , Use the appropriate HttpMessageConverter Write the request body to an object . ...

  8. Spring mvc Next Ajax obtain JSON Object problem 406 error

    I'm learning springmvc In the process ( My project is configuration, and the suffix is .html), from controller Returns the object . If I don't use mvc-annotation-driver, It's manual configuration ,AnnotationMe ...

  9. original ajax Request and feedback

    When users log in , Leave user . The password input box is verified :ajax Initiate the request for verification : login.jsp Code : <%@ page language="java" contentTy ...

Random recommendation

  1. EBS Load in FORM The use of JavaBean Of JAR package

    1.SSH End ,APP The user login : 2. Input env, Determine the name of the environment variable FORMS_WEB_CONFIG_FILE: 3. Locate template file :     $AD_TOP/bin/adtmplreport.sh con ...

  2. Win10 UI introduction RelativePanel

    <RelativePanel Background="Black" > <Rectangle x:Name=" RelativePanel.AlignH ...

  3. iOS7 Solution of total display status bar

    Reprint http://blog.csdn.net/langresser_king/article/details/18351021 2014 year 2 In the beginning , Apple needs developers to use xcode5 Developing games and Applications , ...

  4. java Limitations of generics

    1. Cannot instantiate a generic array , Unless it is a type wildcard with no upper bound , Such as :Gennerid<String> []a=new Gennerid<String>[10] and Gennic<?> ...

  5. http common get Request mode and set Request mode .

    One .Get Request mode The following is an example I wrote get Request mode acquisition api Class of exchange rate in factory . package com.example; import java.io.BufferedReader; import j ...

  6. Android Lighting system of the system -- In depth analysis of notification lights

    Android In depth analysis of notification lamp Category of notification voice Vibration flash light APP How to issue a notification light request getSystemService( Notification services ) structure notification Category The other parameters ( Color ,onMS,of ...

  7. JAVA The state of the thread in

    java thread During the operation period of , There are several States , stay java.lang.Thread.State There are detailed definitions and instructions in : NEW: The state of threads that have not yet been started . RUNNABLE: The thread state of a runnable thread . ...

  8. jenkins Continuous integration : Build multiple job At the same time

    stay jenkins When building a task , At the same time, you can only build 2 individual , But sometimes it may involve the need to perform multiple tasks at the same time ( Greater than 2 individual ), If it can't run at the same time , You need to wait for the last one to finish , Do the third one For example, there are many use cases , Different use cases need to be assigned to ...

  9. Nginx PREACCESS Stage How to limit the number of requests per second per client

    L:56 limit_req_zone $binary_remote_addr zone=one:10m rate=2r/m;# To the user IP As key Open up shared memory 10M And limit it to every minute 2 A request rat ...

  10. nexus and maven Installation and configuration

    If you install with ordinary users, you need to create users Case of genus group groupadd configer  // Create user group useradd -g configer configer  // Create users and specify user groups passwd co ...