cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2806) Script Loader XHR is returning a status of 0 instead of 200, even though it succeeds.
Date Mon, 25 Mar 2013 22:31:18 GMT

    [ https://issues.apache.org/jira/browse/CB-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613237#comment-13613237
] 

Andrew Grieve commented on CB-2806:
-----------------------------------

XHRs to file: URLS always have 0 response codes. I think the rational is that you never talked
to a HTTP server, so there never was a status code. 

The way to fix is just as you say - accept 0 as success.
                
> Script Loader XHR is returning a status of 0 instead of 200, even though it succeeds.
> -------------------------------------------------------------------------------------
>
>                 Key: CB-2806
>                 URL: https://issues.apache.org/jira/browse/CB-2806
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.6.0
>            Reporter: Michal Mocny
>            Assignee: Michal Mocny
>
> Using our new plugin loaded fails (for me, on iOS 6.1) due to an xhr failing with a response
of 0, even though the content is fetched fine.
> We should figure out the underlying issue, but for now I'm going to patch to accept a
response of 0.  (Also, there was a similar issue for ios 6.0 for webworkers specifically,
I wonder if these are related)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message