The response time is very large when we create associations with custom object. The issue begins today last day the response was “OK”.
Note: We are using short-hand in custom object “factura” to “p_factura” :
def search_factura(self, folio_factura: str, rut_proveedor: str) -> list: filter_rut = Filter(property_name="rut_proveedor", operator="EQ", value=rut_proveedor) filter_folio = Filter(property_name="numero", operator="EQ", value=str(folio_factura)) filter_groups = [FilterGroup(filters=[filter_rut, filter_folio])] public_object_search_request = PublicObjectSearchRequest( limit=1, filter_groups=filter_groups, sorts=[{ "propertyName": "hs_object_id", "direction": "ASCENDING" }] ) try: response = self.api_client.crm.objects.search_api.do_search( object_type="p_factura", public_object_search_request=public_object_search_request) return response.to_dict().get('results', []) except ApiException as e: logger.error((f"Código de error cuando busca factura por " f"folio:{folio_factura} y rut_proveedor:" f"{rut_proveedor}:{e.status}")) raiseThe response is the very long for the custom object:2025-07-10 16:34:05,602 - process_hubspot - INFO - factura id hubspot: factura_to_create2025-07-10 16:34:05,602 - process_hubspot - INFO - Creando factura nueva en huspot........2025-07-10 16:35:21,438 - process_hubspot - INFO - Factura creada del respaldo: 305954960162025-07-10 16:36:38,610 - process_hubspot - INFO - Deal del respaldo:399826226482025-07-10 16:36:39,146 - process_hubspot - INFO - Crea asociación factura_deal:True2025-07-10 16:36:39,511 - process_hubspot - INFO - Compañia en hubspot del respaldo:66416154962025-07-10 16:40:25,005 - process_hubspot - INFO - Crea asociación factura_company:True