Closed Bug 1190708 Opened 11 years ago Closed 8 years ago

XMLHttpRequest Progress Event Error

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox42 affected)

RESOLVED WONTFIX
Tracking Status
firefox42 --- affected

People

(Reporter: liweijia, Unassigned)

Details

Attachments

(2 files)

1008.32 KB, application/zip
Details
14.92 KB, application/zip
Details
Attached file debug-information.zip —
We’ve identified a critical bug with the XMLHttpRequest API that prevents us from successfully performing http requests. Description: After an application crashes and restarts, all XMLHttpRequest fail with a ProgressEvent Error. The actual request appears to succeed but the “load” event is never called, instead only the “error” event is called. Context: This bug appears to effect multiple devices. This bug appears after an application has crashed, regardless of how many times the application is subsequently restarted. Restarting the device only solves the issue some times I’ve attached a code sample of the request which we are performing, as well as console logs and screenshots that may assist in troubleshooting this error.
looks to me like you need to investigate why "greatcall" is saying unable to connect to network.. " [ 11.005s] [gc.auth.KeyExchange] 2015-08-03 11:22:19.351-07:00 [greatcall] [FINE] [gc.auth.KeyExchange]: PUT key to endpoint" console.js:203:4 " [ 12.111s] [gc.auth.KeyExchange] 2015-08-03 11:22:20.453-07:00 [greatcall] [SEVERE] [gc.auth.KeyExchange]: Key Exchange process failed 2015-08-03 11:22:20.453-07:00 [greatcall] [SEVERE] [gc.auth.KeyExchange]: unable to connect to network 2015-08-03 11:22:20.453-07:00 [greatcall] [SEVERE] [gc.auth.KeyExchange]: gc.auth.KeyExchange.prototype.putKeyPayload_/</<@app://1.greatcall.com/js/gc/auth/src/KeyExchange.js:197:16" console.js:203:4 " [ 12.124s] [gc.system.startup.Startup] 2015-08-03 11:22:20.468-07:00 [greatcall] [SEVERE] [gc.system.startup.Startup]: Failed to do key exchange 2015-08-03 11:22:20.468-07:00 [greatcall] [SEVERE] [gc.system.startup.Startup]: unable to connect to network
(In reply to Patrick McManus [:mcmanus] from comment #1) > looks to me like you need to investigate why "greatcall" is saying unable to > connect to network.. > > " [ 11.005s] [gc.auth.KeyExchange] 2015-08-03 11:22:19.351-07:00 [greatcall] > [FINE] [gc.auth.KeyExchange]: PUT key to endpoint" console.js:203:4 > " [ 12.111s] [gc.auth.KeyExchange] 2015-08-03 11:22:20.453-07:00 [greatcall] > [SEVERE] [gc.auth.KeyExchange]: Key Exchange process failed > 2015-08-03 11:22:20.453-07:00 [greatcall] [SEVERE] > [gc.auth.KeyExchange]: unable to connect to network > 2015-08-03 11:22:20.453-07:00 [greatcall] [SEVERE] > [gc.auth.KeyExchange]: > gc.auth.KeyExchange.prototype.putKeyPayload_/</<@app://1.greatcall.com/js/gc/ > auth/src/KeyExchange.js:197:16" console.js:203:4 > > " [ 12.124s] [gc.system.startup.Startup] 2015-08-03 11:22:20.468-07:00 > [greatcall] [SEVERE] [gc.system.startup.Startup]: Failed to do key > exchange > 2015-08-03 11:22:20.468-07:00 [greatcall] [SEVERE] > [gc.system.startup.Startup]: unable to connect to network From WebIDE I can see network 201 status returned. That means created. And sever side rejects connection later? onerror happens.
This happens when I see a crash happens in the app which initiated the httpRequest. For some device, a reboot can reconnect to server. For some other device, you can't connect to server unless do a reset-gaia.
Attached file testxhr.zip —
Here's the app can reproduce the error. uncomment out last line of app.js run it in webIDE, it'll crash. then, comment out the last line, don't crash the app, you can reproduce the error.
Flags: needinfo?(mcmanus)
Component: Networking: HTTP → General
Flags: needinfo?(mcmanus)
Product: Core → Firefox OS
Version: 42 Branch → unspecified
this sounds more like a process management issue in firefox os.. so I'm going to see if that team can do a little triage
(In reply to Patrick McManus [:mcmanus] from comment #5) > this sounds more like a process management issue in firefox os.. so I'm > going to see if that team can do a little triage Hi patrick, Do we find a guy dive into this? Are they involved in?
Flags: needinfo?(mcmanus)
maybe fabrice can help route this.. if something is crashing, I would start there.
Flags: needinfo?(mcmanus)
Hi Fabrice: Would you help share us some suggestion, or advise a proper expert for it? Thanks! (In reply to Patrick McManus [:mcmanus] from comment #7) > maybe fabrice can help route this.. if something is crashing, I would start > there.
Flags: needinfo?(fabrice)
Hi all, It's an important function for us to use.
(In reply to Viga from comment #4) > Created attachment 8643279 [details] > testxhr.zip > > Here's the app can reproduce the error. > uncomment out last line of app.js > run it in webIDE, it'll crash. > > then, comment out the last line, don't crash the app, > you can reproduce the error. Testing on current master on an aries device connected over wifi, everything works properly. Which branch are you on?
Flags: needinfo?(fabrice)
2.2
Can you reproduce it on 2.2 branch?
Flags: needinfo?(fabrice)
Hi Fabrice, do you have sometime to take a look? Thanks
I'll try to take a look tomorrow, but I don't have a 2.2 build ready right now.
Flags: needinfo?(fabrice)
Hi Fabrice, We can reproduce this problem on Flame 2.2 version. Do you have time to take a look?
Flags: needinfo?(fabrice)
Hi Viga, Jasper: I heard from Jasper that you've worked around this issue by some means, would you share some information here? I assume this is not a blocking issue now, right? Anyway Fabrice is still dedicated in other critical task so I'm afraid he won't be available for this soon.
Flags: needinfo?(liweijia)
Flags: needinfo?(hongjie.gao)
It's a WebIDE problem. Once we don't use it. Everything will be fine.
Flags: needinfo?(liweijia)
(In reply to Viga from comment #17) > It's a WebIDE problem. Once we don't use it. Everything will be fine. Thanks Viga's update, that's good to know! Then I think I'll set it won't fix, and revisit it in the future once it become a really blocker.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(hongjie.gao)
Flags: needinfo?(fabrice)
Resolution: --- → WONTFIX
Hi all, We still experience ProgressEvent Error While doing the httprequest. Leave it unconfirmed.
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: WONTFIX → ---
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago → 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: