APIs & Integrations

PowerMyAnalytic
Top Contributor

Search V3 There was a problem with the request

For 2 of my clients the request of search deals is getting error "There was a problem with the request".

 

Both have the contacts scope and I don't think that it is a problem with the limit of 10,000 items, because it faild right away without making any pagination.

 

Please explain the error - I can't understand from it what is wrong.

 

errors:

 

{ status: 'error',
  message: 'There was a problem with the request.',
  correlationId: 'ad002864-fa49-464c-babb-69689a5b56c1' }
{ status: 'error',
  message: 'There was a problem with the request.',
  correlationId: '5e52aec5-ec6e-4fc8-9b62-419fa4f643c6' }

 

 

request:

https://api.hubapi.com/crm/v3/objects/deals/search

 

{"filterGroups":[{"filters":[{"propertyName":"createdate","operator":"GTE","value":1591660800000},{"propertyName":"createdate","operator":"LTE","value":1591747200000}]}],"properties":["hs_object_id","createdate","hubspot_owner_id","dealstage","amount","dealname","closedate","days_to_close","hs_analytics_source","hs_analytics_source_data_1","hs_analytics_source_data_2","hs_campaign","hs_closed_amount","hs_lastmodifieddate","dealtype","description"],"limit":100,"after":0}

 

 

 

 

7 Replies 7
KMalaiyappan
Participant

Search V3 There was a problem with the request

  • The search endpoints are limited to 10,000 total results for any given query. Attempting to page beyond 10,000 will result in a 400 error.

URL: https://developers.hubspot.com/docs/api/crm/search

Section: Limitation

0 Upvotes
saif_redwhale
Participant

Search V3 There was a problem with the request

I am having the same problem. I am also getting the following error. 




{
"status": "error",
"message": "There was a problem with the request.",
"correlationId": "4504f07b-0ede-4671-b811-bf4bcd52e54f"
}

 

0 Upvotes
saif_redwhale
Participant

Search V3 There was a problem with the request

I am having the same problem. 

0 Upvotes
YouAssa95
Contributor | Diamond Partner
Contributor | Diamond Partner

Search V3 There was a problem with the request

Hello everyone,
I'm having the same issus with contacts search endpoint (v3), even though when I test the same payload in Postman it works.

Any hints plz ?

YouAssa95
Contributor | Diamond Partner
Contributor | Diamond Partner

Search V3 There was a problem with the request

For my case, apparently the search endpoint has a mimit of a 10000 records per request
as mentioned in their Doc https://developers.hubspot.com/docs/api/crm/search 
{
"status": "error",
"message": "This endpoint is limited to 10000 total results for any given query. Try adding filters or updating your query to return fewer results.",
"correlationId": "3d",
"context": {
"after": [
"10100"
]
},
"category": "API_LIMIT"
}
Willson
HubSpot Employee
HubSpot Employee

Search V3 There was a problem with the request

Hey @PowerMyAnalytic,

 

I've just gone ahead and tested the sample payload you've posted here and was able to get a successful response:

{
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "createdate",
                    "operator": "GTE",
                    "value": 1591660800000
                },
                {
                    "propertyName": "createdate",
                    "operator": "LTE",
                    "value": 1591747200000
                }
            ]
        }
    ],
    "properties": [
        "hs_object_id",
        "createdate",
        "hubspot_owner_id",
        "dealstage",
        "amount",
        "dealname",
        "closedate",
        "days_to_close",
        "hs_analytics_source",
        "hs_analytics_source_data_1",
        "hs_analytics_source_data_2",
        "hs_campaign",
        "hs_closed_amount",
        "hs_lastmodifieddate",
        "dealtype",
        "description"
    ],
    "limit": 100,
    "after": 0
}

The above is the payload I passed. Are you able to confirm what the error code was for these responses? We should be seeing a 400 with this message.

Product Manager @ HubSpot
0 Upvotes
PowerMyAnalytic
Top Contributor

Search V3 There was a problem with the request

The service is back now. Thanks!

0 Upvotes