Closed
Bug 840250
Opened 12 years ago
Closed 9 years ago
When we fail to download a hosted app preloading appcache, we should report why the appcache failed to download in the console logs
Categories
(Core :: Networking: Cache, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jsmith, Assigned: mayhemer)
Details
When I try to install a hosted app preloading appcache that has an invalid appcache path (e.g. 404, bad syntax), we currently report an error code in the console, but we don't provide information on what failed in the appcache. Is the path a 404? Is the appcache syntax invalid?
We should both indicate the error code and the reason why the appcache path failed in the logs to improve the developer experience.
Reporter | ||
Updated•12 years ago
|
Blocks: app-install
Comment 1•12 years ago
|
||
IIRC this is difficult right now because the appcache subsystem doesn't report the error to us.
Comment 2•12 years ago
|
||
I'm a bit confused as what we want to fix here. Displaying detailed appcache error messages in gaia looks totally useless. Improving what is sent to logcat (by the appcache code itself) is ok.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #2)
> I'm a bit confused as what we want to fix here. Displaying detailed appcache
> error messages in gaia looks totally useless. Improving what is sent to
> logcat (by the appcache code itself) is ok.
Right, I met logcat, not the Gaia UI. We should definitely not stick this in the UI.
Reporter | ||
Comment 4•12 years ago
|
||
Honza - Do you have any insight here on how we can provide better console error reporting when appcache error is fired?
Comment 5•12 years ago
|
||
I really think the log messages are already quite good. I always found the root appcache error when looking at logcat (for example when I was debugging Nicolas app in Bug 835042 which was because of a bad appcache URL).
If you think some messages are bad, please say which ones exactly.
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #5)
> I really think the log messages are already quite good. I always found the
> root appcache error when looking at logcat (for example when I was debugging
> Nicolas app in Bug 835042 which was because of a bad appcache URL).
From this comment it sound like you HAD to use logcat to figure the problem out and that the error console logs were not sufficient. Is that so? If yes, then we may need to add more logging. Please let me know.
Comment 7•12 years ago
|
||
I debugged on an actual device (because at the time the Firefox OS Simulator was in a bad shape for installing apps) so when I say "logcat" I think it was really the error console for the appcache errors.
Comment 8•12 years ago
|
||
The simulator is currently completely borked when it comes to installation with a busted appcache. See here:
https://github.com/mozilla/r2d2b2g/issues/306
Comment 9•12 years ago
|
||
so unless we have the actual failing error messages, I suggest closing this.
Comment 10•12 years ago
|
||
and by "failing", I mean "not clear enough" or "missing".
Reporter | ||
Comment 11•12 years ago
|
||
Let's get more info from Matt on this since he's the reportee here.
Flags: needinfo?(mattbasta)
Assignee | ||
Comment 12•12 years ago
|
||
As I read the description, it's just about to add a bit more calls to LogToConsole in OfflineCacheUpdate with more verbose info. I can do that.
Comment 13•12 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #12)
> As I read the description, it's just about to add a bit more calls to
> LogToConsole in OfflineCacheUpdate with more verbose info. I can do that.
I can get behind that. I'd prefer too much logging than too little logging. Anything so that your average Joe Developer can tell what the problem is without having to spin up Wireshark or gdb through b2g.
Flags: needinfo?(mattbasta)
Assignee | ||
Comment 14•12 years ago
|
||
Assigning to you then, OK ?
Assignee: nobody → mattbasta
Status: NEW → ASSIGNED
Reporter | ||
Comment 15•12 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #14)
> Assigning to you then, OK ?
Umm...Matt is a marketplace developer, not a gecko developer. He isn't the right assignee for something like this.
Assignee: mattbasta → nobody
Reporter | ||
Updated•12 years ago
|
Component: Gaia::System → Networking: Cache
Product: Boot2Gecko → Core
Version: unspecified → Trunk
Reporter | ||
Comment 16•12 years ago
|
||
Sounds like the way we would fix this would be in the core networking appcache code, right?
Comment 17•12 years ago
|
||
To me the most important missing thing is when the appcache manifest is not downloaded and taken from the HTTP Cache instead. I think there is a bug somewhere about that.
Bug 835079 (2nd point) is about adding a log when a _ressource_ is taken from the HTTP Cache. This could make a lot of logs but still could be useful. Maybe this can be added now and removed when our dev tools show this.
Assignee | ||
Comment 18•12 years ago
|
||
I can add all these logs to appcache update code.
Assignee: nobody → honzab.moz
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Updated•11 years ago
|
No longer blocks: b2g-apps-v1-next
Assignee | ||
Comment 19•9 years ago
|
||
appcache is dead
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•