Skip to main content

Bug Tracker

Side navigation

#14726 closed bug (notabug)

Opened January 24, 2014 06:35PM UTC

Closed March 01, 2014 10:38PM UTC

Last modified March 10, 2014 04:49PM UTC

NS_ERROR_FAILURE when asynchronously getting script

Reported by: Kakao Owned by: Kakao
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

I'm getting this error

"[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://code.jquery.com/jquery-1.10.2.min.js :: .send :: line 6" data: no]"

When executing this request

$.ajax({
    url: 'https://www.paypalobjects.com/js/external/dg.js',
    datatype: 'script',
    async: false,
    cache: true,
    //ifModified: true,
    type: 'GET',
    data: null,
    error: function(xhr, textStatus, errorThrown) { console.log(xhr, textStatus, errorThrown); }
})

Firefox 26 in Fedora 20

Attachments (0)
Change History (5)

Changed March 01, 2014 10:36PM UTC by dmethvin comment:1

owner: → Kakao
status: newpending

Can you provide a jsFiddle that fails?

Changed March 01, 2014 10:38PM UTC by dmethvin comment:2

resolution: → notabug
status: pendingclosed

Oh never mind, I see the problem. You can't get an external script synchronously, and that is documented on the ajax page.

Changed March 10, 2014 04:24PM UTC by Kakao comment:3

Replying to [comment:2 dmethvin]:

Oh never mind, I see the problem. You can't get an external script synchronously, and that is documented on the ajax page.

I can't find it. Could you post a link?

Changed March 10, 2014 04:45PM UTC by dmethvin comment:4

Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. -- https://api.jquery.com/jQuery.ajax/

Changed March 10, 2014 04:49PM UTC by dmethvin comment:5

#14878 is a duplicate of this ticket.