Closed Bug 521172 Opened 16 years ago Closed 16 years ago

PluginCheck is broken on trunk

Categories

(addons.mozilla.org Graveyard :: Plugins, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Unassigned)

References

()

Details

(Keywords: regression)

https://www-trunk.stage.mozilla.com/en-US/plugincheck/ https://www-trunk.stage.mozilla.com/img/tignish/plugincheck/ajax-loader.gif just keeps spinning. Error: console is not defined Source File: https://www-trunk.stage.mozilla.com/js/plugincheck.js Line: 45 Error: checkPlugins is not defined Source File: https://www-trunk.stage.mozilla.com/en-US/plugincheck/ Line: 185 JSON object is failing to load again, or something? /me should learn how to use Firebug
pfs2 seems to be non-responsive. http://pfs2.stage.mozilla.com/
This bug at least tells us that there should be a more graceful way to handle a failed connection to the PFS2 service. Renaming. I'll file a separate bug for the stage server being down.
Summary: PluginCheck is broken on trunk → Handle PFS2 outage gracefully
Bug 521180 filed for the stage server.
Seems like any console logging should have a wrapper script that handles console existence every time instead of having to do if(window.console) every time? Should probably break any console.error(), etc. calls out to something more generic to cut down on code.
Changing back, it's definitely not pfs2 server.
Summary: Handle PFS2 outage gracefully → PluginCheck is broken on trunk
Until we figure it out I rolled back so trunk is back to r53007 (r53030).
I need to work on the error haneling. Yesterday afternoon we switched from jquery.ajax to appending a script tag manually. This changed the scope and error handeling mechanism. We can't use a try/catch or depend on jquery's error callback. I'll add a window.onerror handler. The reason we made the change is to get ride of jQuery's cache busting parameter, but we loose a lot of these freebies.
(In reply to comment #4) I will extract a method for these.
I'm unable to identify what broke. Possibly a mis-match between html and javascript? I've pushed this code back out. Please verify stage is working.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Verified FIXED -- it's back up, thanks (scary that we don't know what broke it).
Status: RESOLVED → VERIFIED
I didn't mean to close this bug. I'm still working on the error handeling portion of making JSONP requests.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
In case of timeout or error communicating with the pfs2 server, the script will remove the plugin detection table and show an error panel. http://skitch.com/oztenskitch/nn11x/plug-in-check Clicking retry reloads the page.
Adding jquery-jsonp library. Adding logic to retry 3 times. Hiding plugin table and displaying retry. Making sure no cache busting is done in the url. Testing tips... We could check in a bad change to PFS.php or you could change your /etc/hosts file so that pfs2.stage.mozilla.com points to localhost
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
(In reply to comment #13) > Adding jquery-jsonp library. Adding logic to retry 3 times. Hiding plugin table > and displaying retry. Making sure no cache busting is done in the url. > > Testing tips... We could check in a bad change to PFS.php or you could change > your /etc/hosts file so that pfs2.stage.mozilla.com points to localhost I didn't need to do all that; it's down right now, so it's easy to verify (I see "Plugin Finding Service Error We've encountered an error. Please try your request again later." with a Retry button) :-( Verified FIXED.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.