caching issues related to JSONP?

30 views
Skip to first unread message

Skylar Woodward

unread,
Jun 21, 2012, 11:43:34 PM6/21/12
to build...@googlegroups.com
I was using the API while toying around with some stuff and noticed that it seems the servers are caching some responses incorrectly due to use of JSONP. That is, if you request the partners feed:


You may get the right data, or you might get it wrapped in a function, ala jsonp.  This come up as I was experimenting making calls both w/o and without the jsonp parameter (w/i a few seconds of each other).  It was almost as if the server was remembering the function name I last passed in a similar json call, for example:


Worse, it seemed like a random round-robin as to what I'd get back. Sometime I'd get what I requested (or what I requested a few seconds ago) and other times I'd get something from another previous request. So it seemed like an issue of per-server caching on certain feeds that didn't take into account the jsonp param (or lack thereof). Thus, cache results differing at different times between different servers too.

Anyone else see this?

I was also trying the requests through YQL and it seemed like even the YQL servers where having trouble getting valid data back sometimes after I had requested some jsonp results (e.g., YQL backend also getting a jsonp wrapped response when it expected raw JSON).

Kevin O'Brien

unread,
Jun 22, 2012, 12:10:15 AM6/22/12
to build...@googlegroups.com
I can't seem to reproduce your result with some basic stabs at it, but perhaps someone else is seeing this?

However, that said, I am noticing in the logs that there has been an error happening in the API since the release, of "unable to allocate memory for pool", which could have something to do with an infrastructure change that happened that day, and perhaps could have something to do with inconsistent results being returned from the API.

-k

--
You received this message because you are subscribed to the Google Groups "build-kiva" group.
To view this discussion on the web visit https://groups.google.com/d/msg/build-kiva/-/zvdRlU7czuQJ.
To post to this group, send email to build...@googlegroups.com.
To unsubscribe from this group, send email to build-kiva+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/build-kiva?hl=en.

Reply all
Reply to author
Forward
0 new messages