Fixing Firefox Gmail 400 Bad request
I posted a few weeks back describing an issue I was experiencing with logging into Gmail from Firefox. Firefox was corrupting Gmail cookies whenever the browser started, so I had to clear cookies each time I started up in order to use Gmail. Today I found the full solution, and it ain’t pretty.
The problem is somewhere in the Firefox profile, and you have to blow the whole thing away to get it running normal again. Unfortunately, that means extensions and bookmarks go bye-bye as well, so you essentially have to approach the process as if you were restoring your browser after a reformat. No worries, here’s what you do…
Back up your bookmarks
We could yank the bookmarks.htm out of the profile folder, but again with a corruption specific to the profile, it’s far better to export them cleanly. From the menu bar choose Bookmarks > Organize Bookmarks. Click the Import and Backup button along the top, and chose Backup.... Follow the save file prompt, tucking the file away for safe keeping.
You can do the same for passwords if you’d like, though I don’t recommend it for security reasons. Even if you save passwords, wiping them out from time to time will clear out any old data you haven’t accessed in a while. The less secure data you have floating on your computer, the better.
Get a list of your extensions
For the same reason as bookmarks, we are not going to save the extensions. Fortunately, it’s super-easy to make a list of installed extensions. Install another extension called Extension List Dumper. This simple add on outputs a list of all your extensions in text, html, or CSV format. It can even include links to the author pages. I really only install from the Firefox add-ons site, so all I needed were the names. Use it to save a copy of the add-ons somewhere safe.
Remove that profile
You should never delete something outright until you are sure you no longer need it, so we are going to move the necessary files out of their usual place to make Firefox think they are gone. My problem and solution were in Windows XP, so Vista and Mac users will have to find their equivalent directories. This MozillaZine article will tell you where to find Firefox’s profile folder on just about any system.
Close Firefox, then open Windows Explorer (i.e. My Computer), and browse here (or your system’s equivalent)…
C:\Documents and Settings\[USER NAME]\Application Data\Mozilla\Firefox
[USERNAME] will usually correspond with your Windows user name. Once you have found the directory, move the profiles.ini file to the desktop – make sure you don’t just make a copy!
Then go into the profiles folder, and you’ll find a folder with a gobbledygook name ending in .default. For instance, mine was called 572p4a0j.default. Grab that entire folder and move it to the desktop. Again, make sure you don’t just make a copy; we want the original location to be empty.
Now restart Firefox, and it should behave as if you did a fresh install. This is what we want. Restore your bookmarks — Bookmarks > Organize Bookmarks > Import and Backup > Restore > Choose File... — and then hit up the Firefox Add-Ons page armed with your list of extensions you made earlier and reload those suckers.
Enjoy no more bad requests! Make sure you mention your experiences in the Mozilla Support Forums to ensure this gets fixed in the future — I’ve responded to threads on the matter here and here. Feel free to post success stories or additional issues in the comments.




Document collaboration
Thank you so very much!! This is the only thing that worked. I got so tired of hearing that I just needed to clean cache/cookies every time I started.
Glad it helped, Eileen!
I ran into the same “clean cache/cookies” responses when I initially researched this problem. Unfortunately, most of those supports comments come from good-natured users who simply don’t understand the problem, usually as a result of a plea for help that wasn’t clear to begin with!
hi frank,
thanks that helped me!
regards
I ran Speedy Fox and suddenly for some unknown reason began getting 404′s when attempting to access anything google-related. I was stumped, and opened Chrome and used google there to find this answer. This worked perfectly. All is well in googletown again. Bless.
Hi – I have been having this problem for a few days now – I can’t figure it out — I tried to do your fix, but unfortunately after clearing my profile (yes, it said the folder was empty) and restarting firefox it did the exact same thing – recreated the profile and put it in the same place, with the same name, even. I’m frustrated.
did I do something wrong? other tips or tricks? thanks!
This problem started four days ago. I tried your way, but when I tried to restart Firefox there was a popup saying Firefox was already running but not responding. The only way I could fix that was to put the original profile back.
The “Firefox is already running but is not responding” error is a very common Firefox issue, unrelated to my instructions.
Follow my instructions again, and use this support thread if it happens again.
http://support.mozilla.com/en-us/kb/firefox+is+already+running+but+is+not+responding
Of course I suggest you look at it first, before going through all that again.