As near as I can see, the 1st request is successful, and then the next
3 return with 401 errors, plus the message "The nonce has already been
used." Clearly, the 2nd, 3rd and 4th attempts should fail, because
they are re-using the nonce that was already used in the first
request, and a nonce can only be used once. So it makes sense that
they would get a 401 error, but it makes no sense that they would ever
get called at all, because why would the code re-try if there was no
IOException.
One of the requests returns with a 200 status:
{:trace-redirects ["
https://api2.omniture.com/admin/1.3/rest/?
method=Report.QueueOvertime"], :request-time 1658, :status
200, :headers {"date" "Mon, 04 Mar 2013 21:23:44 GMT", "server"
"Omniture AWS/2.0.0", "vary" "Accept-Encoding", "content-encoding"
"gzip", "xserver" "www322", "content-length" "83", "content-type"
"application/json", "connection" "close"}, :body "{\"status\":\"queued
\",\"statusMsg\":\"Your report has been queued\",\"reportID\":xxx}"}
I assume this is the first request, because if it wasn't then it would
get the error "This nonce has already been used." And why would the
later requests get the 401 error "This nonce has already been used"
unless the first request had succeeded?
My understanding is the code will retry up to 4 times if it encounters
an IOException. But in my case it seems to be retrying even though
here was no IOException.
Maybe this is some kind of timing issue?
On Mar 5, 10:50 am, larry google groups <
lawrencecloj...@gmail.com>