If you don't find an answer, please click here to post your question.
08-30-2017 07:12 PM
Is it normal for GET requests to take a long time?
It doesn't seem to matter how larger the returned results are. Even a returned JSON record of about 500 characters seems to take a while. It fluctuates, but it is often on the order of 1 second, and at times it seems to "stall" and take 5 to 10 seconds to complete the GET request. Trying to access the performance API server doesn't seem to help.
My ping time to api.ooyala.com is less than a millisecond (average of about 0.6 ms).
I am using the python "requests" package to perform the GET request. Any thoughts on how I can track down where the issue is?
08-31-2017 08:23 AM
08-31-2017 11:36 AM
Here's an example of one I have been using, although I am getting a 503 error at the moment when I try to execute the request:
https://api.ooyala.com/v3/analytics/reports?sort=displays&filters=asset_type%3D%3D%27live%27%2Casset... api key>&start_date=2017-8-26T0%3A0&signature=<my signature>
09-01-2017 09:20 AM
I'm executing the following API call (which is the same that you provided) from Scratchpad
And it's not taking more than 1 sec to return the data. Could you please try to reproduce it from there? I just want to confirm this is not about how you are creating the API call or a network condition on your end.
09-01-2017 10:01 AM
I can't access a browser from the remote server I'm working on (text mode only), but I did try from the local machine.
Trying that same request on the scratchpad repeatedly, it sometimes is relatively quick (say 0.5 seconds or so), but occasionally will take several seconds. One time it took abot 6 seconds before the result was returned.
I did try running a ping from the remote server (an amazon AWS server).
When I ping api.ooyala.com, the result is consistently about 1.5 ms.
When I ping cdn-api.ooyala.com, the latency is typically less than 1 ms.
Also, to take python out of the picture, I issue the same request using cURL 10 times in a row from the remote server with the following execution times:
09-04-2017 07:56 AM