Closed Bug 1003005 Opened 11 years ago Closed 11 years ago

Listing pages load with no content, sometimes (bug 970641 is on Tarako too)

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P1)

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: krupa.mozbugs, Assigned: kngo)

References

Details

Attachments

(1 file)

Attached image screenshot
tarako build identifier: 20140428014001 connectivity used: wifi noticed on: dev (latest build) steps to reproduce: 1. Load Marketplace-dev packaged app on your tarako device 2. Click on the Games category observed behavior: Category section loads with no content 04-28 23:26:13.400 E/GeckoConsole( 1659): Content JS LOG at app://packaged.marketplace-dev.allizom.org/media/js/include.js:6 in l/s/<: [req] GETing https://marketplace-dev.mozflare.net/api/v1/fireplace/search/featured/?cache=1&carrier=telefonica&cat=tarako-games&dev=firefoxos&device=firefoxos&lang=en-US&limit=10&region=es&tag=tarako&vary=0 04-28 23:26:13.670 E/GeckoConsole( 1659): Content JS LOG at app://packaged.marketplace-dev.allizom.org/media/js/include.js:6 in l/s/<: [req] Request failed: GET 0 reproducible?: sometimes Other: Well, at least this bug is an equal oppurtunity offender. See https://bugzilla.mozilla.org/show_bug.cgi?id=970641 for the same issue on Android. Looks like an API issue I filed this to make sure we have this issue being tracked for tarako as well. behavior seen on regular marketplace using inari/hamachi: yes/no
No longer blocks: 998811
Depends on: 970641
Kevin -- was there progress on this stemming from bug 970641?
Flags: needinfo?(kngo)
Yeah, I'm pretty sure. It can get the data, just the 'defer' block is having trouble injecting it into the page. Although I found a possible root issue, I had real trouble finding a good way to get around it. Here were my scratch notes. builder.js defer GET issue, not returning data back. - gets past request.__cached - that request.done doesn't look synchronous, race condition? - are promises the solution? use injector - UID changing - Double defer - the first defer probably finishes but never seen in UI - change in the placeholder ID, placeholder replaces what the first defer renders - the second defer never finishes, placeholder never replaced
Flags: needinfo?(kngo)
Assignee: nobody → kngo
Component: General → Consumer Pages
Priority: -- → P2
Still repro?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Resolution: WONTFIX → WORKSFORME
Kevin is working on this. Last irc comment went: we're getting intermittent CORS errors causing krupa's reported "GET 0" bug 12:38 PM Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://marketplace-dev-cdn.allizom.org/api/v1/fireplace/search/featured/?cache=1&cat=tarako-games&lang=en-US&limit=10&offset=10&region=us&tag=tarako&vary=0. This can be fixed by moving the resource to the same domain or enabling CORS. 12:40 PM maybe fire the request a second time if it's fails...
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Moving to P1 because it appears to happen more frequently on Tarako (though Krupa has deemed it not a blocker)
Priority: P2 → P1
Blocks: 1011012
Kevin -- given the new deferring behavior, is this still an issue (on Tarako)?
Flags: needinfo?(kngo)
Let's try retrying requests. See if it reduces the occurrences. If you find an occurrence, please submit ashes. https://github.com/mozilla/yogafire/commit/4352c17f83b4d9950b3403c1144a1655927dae08
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Flags: needinfo?(kngo)
Resolution: --- → FIXED
Navigating to the Privacy policy link from the homepage results in a GET 0 request now. ashes: 85d00
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Took 20 minutes to reproduce, which was successfully worked around with the retry. I added triple retries for good measure: https://github.com/mozilla/yogafire/commit/fd642b6539d6e7c9ab72a711a326d524c790f56a
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: