I see, Tony.
I think I can help you out a little more here, mate.
It seems like the call you’re making against the search API doesn’t return any errors. It looks like that the search request doesn’t align with any value from your contacts.
If that is really the case, which I highly suspect, the server’s response code is 200. The status codes you’re looking for in your retries are 429, 500, 502, 504, 400, 404. Which makes sense, as you would usually only catch errors really.
If you use the do_search_with_http_info method instead of the normal do_search, you get that information as well. It should look something like this:
api_response = api_client.crm.contacts.search_api.do_search_with_http_info(public_object_search_request=public_object_search_request)
For example, this is what I’m getting back:
({‘paging’: None, ‘results’: [], ‘total’: 0}, 200, HTTPHeaderDict({‘Date’: ‘Fri, 17 Mar 2023 14:50:59 GMT’, ‘Content-Type’: ‘application/json;charset=utf-8’, ‘Content-Length’: ‘24’, ‘Connection’: ‘keep-alive’, ‘CF-Ray’: ‘7a960d289b12904e-FRA’, ‘Strict-Transport-Security’: ‘max-age=31536000; includeSubDomains; preload’, ‘Vary’: ‘origin, Accept-Encoding’, ‘CF-Cache-Status’: ‘DYNAMIC’, ‘Access-Control-Allow-Credentials’: ‘false’, ‘X-HubSpot-Correlation-Id’: ‘11533ab1-d998-419f-a714-5cf44e65b54d’, ‘X-HubSpot-RateLimit-Daily’: ‘500000’, ‘X-HubSpot-RateLimit-Daily-Remaining’: ‘499977’, ‘X-Trace’: ‘2BCF7D4EBC5BFB6512CAAD0A23663831ADBD89F898000000000000000000’, ‘Report-To’: ‘{“endpoints”:[{“url”:“https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=wHhEhNZ2BERa%2BgG%2BiPQO2eE4XyELJd3xn0Cg%2BmekEY%2Bx%2BCLx3Xygzdf4OTJJoINF%2BZgnc9XOp3PKsTJNH1v4vbf39octrIlyplxnvz2l%2FkgWjrrD9Lg4dPuVrtPejbjnMJZifBz%2FxZCPJIdF”}],“group”:“cf-nel”,“max_age”:604800}’, ‘NEL’: ‘{“success_fraction”:0.01,“report_to”:“cf-nel”,“max_age”:604800}’, ‘Server’: ‘cloudflare’, ‘alt-svc’: ‘h3=“:443”; ma=86400, h3-29=“:443”; ma=86400’}))
Did you manage to find any contact with some other filter combination before?
You would see a lot of error messages in the response if the retries would fire. Also it says something similar to:
Max retries exceeded with url: /crm/v3/objects/deals/search (Caused by ResponseError(‘too many 400 error responses’))
Cheers,
Chriso