Title: Marketo activities.json API endpoint causing a timeout
Tags: marketo
Question: I am trying to use the Marketo activities.json API endpoint, and I am getting a timeout everytime I try. I have set the cURL timeout to 25 seconds and I am using a valid nextPageToken parameter to filter the results. The timeframe is yesterday and today.
When I try other endpoints (lists.json, activities/pagingtoken.json, leads.json, lists.json, and stats/usage/last7days.json) I get a response and my request does not timeout.
Here is the request I am making to activities.json:
method: "GET"
url: "https://[marketo-id].mktorest.com/rest/v1/activities.json"
parameters: Array
[nextPageToken] =&gt; [paging-token]
[listId] =&gt; [list-id]
[activityTypeIds] =&gt; 24
[access_token] =&gt; [access-token]
Why am I getting a timeout just for the activities.json endpoint? Is this  API endpoint broken or down?


Here is another answer: The global timeout for Marketo's REST API is 30 seconds, can you first try adjusting your local timeout to match this?  If you remove list ID from from the call what happens?
Comment for this answer: I'd say to open a support ticket at this point.  You shouldn't be getting a timeout for a basic operation like that.  Be sure to include some example calls with the ticket.
Comment for this answer: You can open tickets on support.marketo.com, but if you aren't an authroized contact for the support entitlement you'll probably need to have your marketo admin or marketing ops specialist do this for you.
Comment for this answer: I updated the timeout to 60 seconds and I am still getting a timeout from the `activities.json` endpoint. I independently tested removing the `listId` parameter as well and that did not make any difference. Everything I try leads me to believe this endpoint is not functioning.
Comment for this answer: More info: when I remove the parameter `activityTypeIds` I get the following error: `[code] => 1002 [message] => Missing value for required parameter 'activityTypeIds'`. When that is in the request, I get a timeout. I am not doing anything additional but hitting that endpoint. No matter what I get a timeout every time. The fact that an error is returned yet when everything is correct I get a timeout leads me to believe there is an definite error with this endpoint.
Comment for this answer: How can I open a support ticket? When I look here http://developers.marketo.com/support/overview/ I see just stackoverflow and twitter as the two channels available for help with Marketo.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:02/05/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<marketo>', 'Title': 'Marketo activities.json API endpoint causing a timeout', 'ViewCount': 489, 'id': 35232035, 'user_AboutMe': None, 'user_AccountId': 2293105.0, 'user_DisplayName': 'silentmeditations', 'user_Reputation': 31.0, 'user_Views': 12.0, 'user_id': 2015315.0}}