HTTP 400 Bad Response

Help
Randy
2007-08-24
2013-05-21
  • Randy
    Randy
    2007-08-24

    Just running the libgmail.py, it asks for username and password and then returns:
    Please wait, logging in...
    HTTP Error 400: Bad Request
    Login successful.

    No messages found

    Traceback (most recent call last):
      File "C:\Python25\Lib\libgmail-0.1.6\libgmail.py", line 1600, in <module>
        quotaInfo = ga.getQuotaInfo()
      File "C:\Python25\Lib\libgmail-0.1.6\libgmail.py", line 508, in getQuotaInfo
        return self._cachedQuotaInfo[0][:3]
    TypeError: 'NoneType' object is unsubscriptable

    Any Ideas?
    Thanks
    Randy

     
    • GradeAWarrior
      GradeAWarrior
      2007-08-27

      I believe I encountered a similar problem just a few moments ago. What I was doing was debugging a related issue using python2.5.1 (on cygwin) and libgmail-0.1.6. I was seeing the same 400 exception when trying to login with "ga.login()".

      The resolution in my case was to download the latest 0.1.6.1 release in the download section. There may have been other factors, but I believe this was the root problem.