ashutoshtyagi / pydelicious

Automatically exported from code.google.com/p/pydelicious
Other
0 stars 0 forks source link

posts_all error #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
$ python
Python 2.4.4 (#1, Jan 25 2008, 01:23:50)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pydelicious import *
>>> from getpass import *
>>> u=getpass("Username: ")
Username:
>>> p=getpass("Password: ")
Password:
>>> api=apiNew(u,p)
>>> posts=api.posts_all()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 663, in 
posts_all
    return self.request("posts/all", tag=tag, **kwds)
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 554, in 
request
    fl = self._call_server(path, **params)
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 522, in 
_call_server
    return self._api_request(path, params, self.user, self.passwd)
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 338, in 
dlcs_api_request
    return http_auth_request(url, DLCS_API_HOST, user, passwd, USER_AGENT)
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 311, in 
http_auth_request
    return http_request(url, user_agent)
  File "/usr/lib/python2.4/site-packages/pydelicious.py", line 284, in 
http_request
    raise PyDeliciousException, "%s" % e
pydelicious.PyDeliciousException: HTTP Error 503: Service Temporarily 
Unavailable

I'm currently use: pydelicious-0.5.0

Thank you
Alberto

Original issue reported on code.google.com by alberto....@gmail.com on 3 Feb 2008 at 3:13

GoogleCodeExporter commented 8 years ago
i get the same error with svn version. 

greetings
Alberto 

Original comment by alberto....@gmail.com on 3 Feb 2008 at 3:32

GoogleCodeExporter commented 8 years ago
See: http://del.icio.us/help/api/

 "Please watch for 503 errors and back-off appropriately. It means that you have been
throttled."

Specificly, why you marked this a defect:
- did you expect something else? 
- Is the problem persisting? In that case, have you contacted the del.icio.us 
crew?

E.g.: I have a collection of 8578 posts and 16938 tags. del.icio.us is not 
happy when
I request the XML listings for those. It usually works, but may result in 503's.

Btw: you can use tools/dlcs.py to work with your collection from the command 
line.
The program will keep a cache of both XML files. Its not a very beautiful piece 
of
coding and needs a lot of fixes but it works well for me.

But in closing, there is not much the pydelicious project can do about this.

Original comment by berend.v...@gmail.com on 3 Apr 2008 at 6:08