Error making Ajax request

Asked

Viewed 2,126 times

0

When I try to make a requisition ajax using the command $.post jQuery appears an error in Chrome Network someone knows what might be this error

inserir a descrição da imagem aqui

Code: I’m using the codeigniter framework

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

2 answers

2

From what I’ve researched, this could be caused by something that’s intercepting your request, and sending an empty request.

Possibly a ad blocker (like Adblock), as indicated in this SOEN response:

https://stackoverflow.com/a/21179105/195417

Suggestion: tries to install the Fiddler to see how the request is getting done, because there must be something intercepting the request... after doing this, try to check in other browsers, and see how the requests are in each of the browsers... so you can isolate the problem more and more.

EDIT More suggestions based on SOEN:

  • Putz, what a coincidence kkkk

  • But I don’t have an extension called Adblock in my browser

  • and also this error only once in a while.. maybe it might be some process being run in the browser because the error only once in a while

  • @Pauloroberto , yes I had already seen the soen question but it did not solve me problem so I took their image to not need to show my url but the end error is even

  • 1

    @Silvioandorinha Without the possibility to reproduce the problem, I can only help with the search... I edited the answer... if it’s nothing like that, then when you solve it, please post the solution as an answer, in order to help others who go through the same problem.

  • @Miguelangelo OK, you can leave.

Show 1 more comment

1

Obs: There’s a question that’s extremely similar to yours here, the image is identical.

Translated Response from SOEN

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

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

Reference(response on SOEN)

  • 1

    Yes I’ve seen this question but I don’t have any Adblock extension installed in my browser

  • there is and yes I had already seen the question of soen but it did not solve me problem so I took their image not to need to show my url but the final error is same

  • in the reply comments I found the following: "Try typing chrome://net-internals, run your code, then go back to the screen of chrome://net-internals and use the text field to search for the event related to your request (parts of the url), then click on the event and see if the information helps you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.