Skip to content

Library throws an exception talking to dreamwidth.org #12

@zetasyanthis

Description

@zetasyanthis

Dreamwidth is Live-Journal based and uses the same XML-RPC interface (maybe a slightly older version?). This should work, but blows up with the following error.

Note that oddly, ljdump doesn't blow up talking to dw, so it is possible for this to work, but ljdump is not nearly the fully featured library this is. I'm investigating what it's doing differently...

Updated 68 entries and 2 comments
Downloading journal entries
69 entries to download
getting entries starting at 2015-09-24 23:22:44
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/lj/lj.py", line 326, in _getevents
    response = self.__request('getevents', arguments)
  File "/usr/local/lib/python3.4/dist-packages/lj/lj.py", line 78, in __request
    response = method(args)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1098, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1140, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1156, in single_request
    return self.parse_response(resp)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1327, in parse_response
    return u.close()
  File "/usr/lib/python3.4/xmlrpc/client.py", line 657, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 406: "Client error: Client is making repeated requests.  Perhaps it's broken?">

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./src/myarchive/main.py", line 161, in <module>
    main()
  File "./src/myarchive/main.py", line 154, in main
    ljapi.download_journals_and_comments(db_session=tag_db.session)
  File "/mnt/bulk/repos/projects/myarchive/src/myarchive/ljlib.py", line 55, in download_journals_and_comments
    nj = update_journal_entries(server=self._server, journal=self.journal)
  File "/usr/local/lib/python3.4/dist-packages/lj/backup.py", line 117, in update_journal_entries
    sync = server.getevents_syncitems(one_second_before(syncitems[0][1]))
  File "/usr/local/lib/python3.4/dist-packages/lj/lj.py", line 362, in getevents_syncitems
    return self._getevents(selecttype="syncitems", lastsync=lastsync, **kwds)
  File "/usr/local/lib/python3.4/dist-packages/lj/lj.py", line 328, in _getevents
    raise LJException(v)
lj.lj.LJException: <Fault 406: "Client error: Client is making repeated requests.  Perhaps it's broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions