Error when requesting Ajax

0

When I try to make a request ajax using the command $.post of jQuery, an error appears in the netWork of the chrome someone knows what that error might be

Code:Iamusingthecodeigniterframework

$.post('/pages/entradaprodutos/carregar_notasfiscais',{codigo:$("#fornecedores").val()
        },function(resposta){
                console.log(resposta) 
         });
    
asked by anonymous 20.02.2014 / 15:32

2 answers

2

As I researched, this could be caused by something that is intercepting your request, and sending an empty request.

Possibly an ad blocker (such as AdBlock) as indicated in this SOEN response:

link

Tip: Try installing fiddler to see how the request is getting, because there must be something intercepting the request ... after doing this, try to check in other browsers, and see how the requests stay in each of the browsers ... so you can isolate the problem more and more.

EDIT More suggestions based on SOEN:

  • Start chrome with --disable-extensions on the command line ( link )

  • Verify that the request is not being made to another domain

  • Feature is being loaded from the browser cache ( link ) ... eg for lack of connectivity to the server, the browser takes a resource from the cache, without actually requesting it.

20.02.2014 / 15:41
1

Note: There is a question very similar to your here , the image is identical .

SOEN Translated Response

The feature could be being blocked by an extension (AdBlock, etc.)

The message is there because the request to retrieve this resource has never been made, so the headers being presented are not real.

Reference (SOEN response)

    
20.02.2014 / 15:44