kuber
V2EX  ›  V2EX

访问http://www.v2ex.com/twitter 碰到异常

  •  
  •   kuber · Nov 2, 2010 · 4681 views
    This topic created in 5673 days ago, the information mentioned may be changed or developed.
    是不是因为我没有在setting 中设置twitter 帐号?
    看到以下异常信息:

    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
    File "/base/data/home/apps/v2ex/1.345911815543573714/t.py", line 172, in get
    statuses = twitter.GetHomeTimeline(count = 50)
    File "/base/data/home/apps/v2ex/1.345911815543573714/twitter/twitter.py", line 1453, in GetHomeTimeline
    json = self._FetchUrl(url, parameters=parameters)
    File "/base/data/home/apps/v2ex/1.345911815543573714/twitter/oauthtwitter.py", line 101, in _FetchUrl
    url_data = opener.open(url).read()
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 401: Unauthorized
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1385 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 213ms · UTC 17:14 · PVG 01:14 · LAX 10:14 · JFK 13:14
    ♥ Do have faith in what you're doing.