Forum: Rails Spinoffs (closed, excessive spam) NS_ERROR_NOT_AVAILABLE

9386fd9652230efb0941ec5eb0a26448?d=identicon&s=25 Eule (Guest)
on 2007-05-15 09:24
(Received via mailing list)
Exception:[Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
prototype.js :: anonymous :: line 920"  data: no]

Hi,
i read about this problem and i know, that calling
nsIXMLHttpRequest.status causes it.
prototype has a try-catch-block around this.
But whats about the reasons? Do anybody know how i can eliminate the
reason.


LG
Eule
5bf4a96e583a502a810ad66fc343a60f?d=identicon&s=25 Christophe Porteneuve (Guest)
on 2007-05-15 11:13
(Received via mailing list)
Hey,

Eule a écrit :
> reason.
Either you're trying to access a location outside the S.O.P. (other
port, other subdomain/domain), or you're trying to access a non-existing
URI and get a 404 response back.  Check your target URI with great care.

--
Christophe Porteneuve aka TDD
tdd@tddsworld.com
40cf68040dd6b7459779cddc50c39744?d=identicon&s=25 Jerod Venema (Guest)
on 2007-05-16 01:37
(Received via mailing list)
I get that one all the time when developing in ASP.Net...when
recompiling,
or if the built in server dies, that's the error that gets thrown. Make
sure
the server exists, is valid, and isn't getting blocked. And like Chris
said,
be sure it's in the SOP

-Jerod
5bf4a96e583a502a810ad66fc343a60f?d=identicon&s=25 Christophe Porteneuve (Guest)
on 2007-05-16 08:19
(Received via mailing list)
Jerod Venema a écrit :
> I get that one all the time when developing in ASP.Net...when
> recompiling, or if the built in server dies, that's the error that gets
> thrown. Make sure the server exists, is valid, and isn't getting
> blocked. And like Chris said, be sure it's in the SOP

FWIW, it also happens when attempting to read the status property of the
XHR object before its readyState is 4 (before
onSuccess/Failure/Complete, that is).

--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: tdd@tddsworld.com
0ca9c17524f790deb15509752b9b226c?d=identicon&s=25 Tim (Guest)
on 2007-05-23 21:47
(Received via mailing list)
> FWIW, it also happens when attempting to read the status property of the
> XHR object before its readyState is 4 (before
> onSuccess/Failure/Complete, that is).

That is rather strange because for my code:

  if(req.readyState == 4){
   if(req.status == 200){

I got the error message for the first of this two lines. I'm wired.
The file I'm trying to access is from the same domain but I'm locating
it using relative path. I don't think it can be the matter.

The other strange fact is that on localhost everything works fine. On
the remote server it fails.
0ca9c17524f790deb15509752b9b226c?d=identicon&s=25 Tim (Guest)
on 2007-05-23 22:04
(Received via mailing list)
http://weblog.richardadamdean.com/?p=8 -- here is interested article.
This guy said that this error happens when HTTPRequest called while
submitting form. What do you think?
0ca9c17524f790deb15509752b9b226c?d=identicon&s=25 Tim (Guest)
on 2007-05-23 22:05
(Received via mailing list)
http://weblog.richardadamdean.com/?p=8 -- here is interested article.
This guy said that this error happens when HTTPRequest called while
submitting form. What do you think?
0ca9c17524f790deb15509752b9b226c?d=identicon&s=25 Tim (Guest)
on 2007-05-23 22:06
(Received via mailing list)
http://weblog.richardadamdean.com/?p=8 -- here is interested article.
This guy said that this error happens when HTTPRequest called while
submitting form. What do you think?
0ca9c17524f790deb15509752b9b226c?d=identicon&s=25 Tim (Guest)
on 2007-05-23 22:16
(Received via mailing list)
http://weblog.richardadamdean.com/?p=8 -- here is interested article.
This guy said that this error happens when HTTPRequest called while
submitting form. What do you think?
03548c55c111462fc124639c8f7bc70d?d=identicon&s=25 Eule (Guest)
on 2007-05-29 10:32
Hi Tim, thanks for your help.
Tim wrote:
> http://weblog.richardadamdean.com/?p=8 -- here is interested article.
> This guy said that this error happens when HTTPRequest called while
> submitting form. What do you think?

1. (http://weblog.richardadamdean.com/?p=8) Yes,  i can confirm that it
happens only in FireFox(Version 1 or 2 it soesn't matter)
1.1. but it(2.) affects not only submitting forms, updating with
Ajax.Updater causes the same error
1.2 i have already a line with return false in my onClick-Routine
2. It's definitivly not a false URI. I'm requesting only relative paths
3. the linenumber in the errormessage is 920 or 931
Exception:[Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
prototype.js :: anonymous :: line [920 | 931]"  data: no]
4. I'm collecting only the errormessages and i can't reproduce it.


LG
Eule
9386fd9652230efb0941ec5eb0a26448?d=identicon&s=25 Eule (Guest)
on 2007-05-29 10:42
(Received via mailing list)
Hi Tim, thanks for your help.
Tim wrote:
> http://weblog.richardadamdean.com/?p=8 -- here is interested article.
> This guy said that this error happens when HTTPRequest called while
> submitting form. What do you think?

1. (http://weblog.richardadamdean.com/?p=8) Yes,  i can confirm that
it happens only in FireFox(Version 1 or 2 it soesn't matter)
1.1. but it(2.) affects not only submitting forms, updating with
Ajax.Updater causes the same error
1.2 i have already a line with return false in my onClick-Routine
2. It's definitivly not a false URI. I'm requesting only relative
paths
3. the linenumber in the errormessage is 920 or 931
Exception:[Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
prototype.js :: anonymous :: line [920 | 931]"  data: no]
4. I'm collecting only the errormessages and i can't reproduce it.


LG
Eule
This topic is locked and can not be replied to.