{"record":{"id":"5375e72ff51e2c52","repo":"OpenBB-finance/OpenBB","slug":"the-request-was-returned-empty-5375e7","errorCode":null,"errorMessage":"The request was returned empty.","messagePattern":"The request was returned empty\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/intrinio/openbb_intrinio/models/calendar_ipo.py","lineNumber":191,"sourceCode":"    ) -> list[dict]:\n        \"\"\"Return the raw data from the Intrinio endpoint.\"\"\"\n        api_key = credentials.get(\"intrinio_api_key\") if credentials else \"\"\n\n        base_url = \"https://api-v2.intrinio.com/companies/ipos\"\n        query_str = get_querystring(query.model_dump(by_alias=True), [])\n        url = f\"{base_url}?{query_str}&api_key={api_key}\"\n\n        data = await get_data_one(url, **kwargs)\n\n        return data.get(\"initial_public_offerings\", [])\n\n    @staticmethod\n    def transform_data(\n        query: IntrinioCalendarIpoQueryParams, data: list[dict], **kwargs: Any\n    ) -> list[IntrinioCalendarIpoData]:\n        \"\"\"Return the transformed data.\"\"\"\n        if not data:\n            raise EmptyDataError(\"The request was returned empty.\")\n        return [IntrinioCalendarIpoData.model_validate(d) for d in data]\n","sourceCodeStart":173,"sourceCodeEnd":193,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/intrinio/openbb_intrinio/models/calendar_ipo.py#L173-L193","documentation":"Standard OpenBB EmptyDataError from the Intrinio IPO calendar fetcher's transform step: the HTTP call succeeded (possibly 200 with an empty 'initial_public_offerings' array) but there are no rows to validate, so the framework surfaces 'empty data' to the caller instead of returning a silently empty DataFrame.","triggerScenarios":"Querying obb.equity.calendar.ipo(provider='intrinio') with date filters (start_date/end_date) that contain no IPO events, or a market/period with no scheduled offerings; data.get('initial_public_offerings') returns [] and transform_data raises.","commonSituations":"Weekends/holiday windows with no IPOs; very narrow date ranges; future dates beyond the calendar horizon; symbols/filters valid but unpopulated; also occurs when the API key lacks plan access and Intrinio returns an empty payload instead of an error.","solutions":["Widen the start_date/end_date window to include trading days with actual IPO activity.","Treat EmptyDataError as an expected 'no events' outcome: catch it and return an empty frame in your application.","Verify your Intrinio subscription covers IPO calendar data (some plans return empty rather than 403).","Cross-check with another provider (e.g. Nasdaq) to confirm the window truly has no IPOs."],"exampleFix":"# before\nres = obb.equity.calendar.ipo(provider='intrinio', start_date='2024-01-01', end_date='2024-01-02')\n# after\nfrom openbb_core.provider.abstract.fetcher import EmptyDataError\ntry:\n    res = obb.equity.calendar.ipo(provider='intrinio', start_date='2024-01-01', end_date='2024-01-31')\nexcept EmptyDataError:\n    res = None","handlingStrategy":"try-catch","validationCode":"# Sanity-check the window before calling: IPOs cluster on trading days\nfrom datetime import date, timedelta\nif (end_date - start_date).days < 1:\n    widen_window()  # single-day/narrow windows frequently have no IPOs","typeGuard":null,"tryCatchPattern":"from openbb_core.provider.abstract.fetcher import EmptyDataError\ntry:\n    res = obb.equity.calendar.ipo(provider='intrinio', start_date=s, end_date=e)\nexcept EmptyDataError:\n    res = None  # no IPOs in window - not an error condition","preventionTips":["Treat EmptyDataError from calendar endpoints as 'no events', not failure","Widen date windows when querying sparse calendars","Verify Intrinio plan covers IPO calendar data"],"tags":["intrinio","empty-data","ipo-calendar","emptydataerror"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}