Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14342 closed bug (notabug)

"468" in ajax request url

Reported by: ivcho92@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Testing with Chrome Version 29.0.1547.62 m

Trying to send request and it is supposed to fail with 404 or "Origin http://jquery.com is not allowed by Access-Control-Allow-Origin." for example. But request is not even made. Just rises exception.

$.get("http://localhost:3000/banner/468", function(c){
  alert( c );
});

... but this works as expected.

$.get("http://localhost:3000/banner/467", function(c){
  alert( c );
});

Change History (4)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

You'd need to debug this further on your own where it happens, there is almost NO information here and we certainly couldn't reproduce it given what's been given. Ask for help on a forum or StackOverflow where someone can walk you through some things to try. Possibly related to #14334 but again not easy to tell based on sketchy info.

comment:2 Changed 6 years ago by anonymous

The bug is not specific to my application. I seems to explain it bad. Please, check this out.

https://dl.dropboxusercontent.com/u/10864790/bug.jpg

comment:3 in reply to:  2 Changed 6 years ago by dmethvin

I definitely don't understand. Are you saying there is a problem with jquery.com? Where is the code that runs to give you that console output?

comment:4 Changed 6 years ago by anonymous

Just run the code in your console. The jquery domain is just to illustrate that, what you load is not important. The problem is with URL that you want to request. If that URL ends with "banner/468", request makes error in jQuery soruce code and it is not even send. If url ends with "/banner/467", request is send and some HTTP error is recieved as expected. Try to run this by replacing jquery.com with google.com for example.

$.get("http://google.com/banner/468", function(c){
  alert( c );
});
// Error: GET http://google.com/banner/468 jquery.js:130
$.get("http://google.com/banner/467", function(c){
  alert( c );
});
// Still error but request is send.

I am totally confused.

Note: See TracTickets for help on using tickets.