?

Log in

No account? Create an account
syncitems.. - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

syncitems.. [Mar. 7th, 2003|12:36 am]
LiveJournal Client Discussions
lj_clients
[idiequietly]
I keep getting "Client is making repeated requests. Perhaps it's broken?" error. My client isn't broken. Its trying to cache a entire journal. This process can take many requests, depending on the size of the journal. Syncitems mode only returns 500 or items and the getevents returns 100. Say you wanted to sync the test/test journal.. That journal has about 2500 entries. Thats going to be around 30 requests. Some communities have thousands of entries.. Yah yah... I know its not a common thing to download a journal of that size. As far as I as can see, the purpose of syncitems is to cache a local copy of a journal.. for whatever purpose you might have.. such as being able to edit a entry offline or save your journal.. or ever transport your journal to another lj core website. Why was syncitems changed? The change has caused the whole purpose of syncitems to change.. or cause the client writers to buffer requests.. which in the long run.. causes client users (which may be.. paying users) to have to wait longer.
linkReply

Comments:
From: evan
2003-03-06 09:46 pm (UTC)
Brad found out that some popular client (Sema, maybe?) in an error condition would send requests over and over, so he put up some rate limiting.

The code that detects that error looks like this:
            if ($count >= 2) {
                # 2 prior, plus this one = 3 repeated requests for same synctime.
                # their client is busted.  (doesn't understand syncitems semantics)
                return fail($err,406);
            }

Are you sure you're sending different synctimes?
It limits you to three requests to the same synctime in one hour.

(It's ljprotocol.pl, around line 1300, if you want to look at it yourself.)
(Reply) (Thread)
From: idiequietly
2003-03-06 10:31 pm (UTC)
Login.. (get cookie)
mode=login&ver=1&lineendings=unix

Get all items to sync..
mode=syncitems&ver=1&lastsync=1970-03-06+20%3A15%3A16&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2001-11-11+06%3A17%3A38&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-01-27+13%3A35%3A12&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-03-16+16%3A31%3A21&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-04-30+12%3A00%3A34&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-05-27+20%3A46%3A52&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-06-21+02%3A10%3A15&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-07-24+09%3A01%3A34&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-08-25+12%3A09%3A39&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-09-24+19%3A06%3A01&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-10-24+11%3A34%3A00&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-11-27+21%3A09%3A25&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2002-12-23+14%3A52%3A16&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-01-07+19%3A01%3A14&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-01-20+19%3A44%3A14&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-01-30+19%3A02%3A40&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-02-10+19%3A33%3A14&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-02-20+08%3A13%3A19&usejournal=gothic_babes
mode=syncitems&ver=1&lastsync=2003-03-04+07%3A20%3A34&usejournal=gothic_babes

start download of events..
mode=getevents&ver=1&lineendings=unixs&electtype=syncitems&lastsync=1970-03-06+20%3A15%3A16&usejournal=gothic_babes

The err happens at this request.
(Reply) (Parent) (Thread)
From: idiequietly
2003-03-08 07:24 am (UTC)
hmm, I am only calling on the same date 2 times.. which is something you have to do.. once in the syncitems and once in the getevents. That shouldnt trigger the condition.
(Reply) (Parent) (Thread)
From: bunny2u101
2003-03-18 09:11 am (UTC)

Just Reading some of the Lj users

Hi!
(Reply) (Thread)
From: idiequietly
2003-03-18 10:18 am (UTC)

Re: Just Reading some of the Lj users

ohh, well hi to you as well =]~!
(Reply) (Parent) (Thread)