{"record":{"id":"ea6a70c5d09ae55d","repo":"OpenBB-finance/OpenBB","slug":"the-response-was-returned-empty-ea6a70","errorCode":null,"errorMessage":"The response was returned empty.","messagePattern":"The response was returned empty\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/intrinio/openbb_intrinio/models/historical_market_cap.py","lineNumber":138,"sourceCode":"                data = response.get(\"historical_data\", {})\n                result = [\n                    {\"symbol\": symbol, **item} for item in data if item.get(\"value\")\n                ]\n                results.extend(result)\n\n            return\n\n        await asyncio.gather(*[get_one(symbol) for symbol in symbols])\n\n        if messages and not results:\n            raise OpenBBError(messages)\n\n        if messages and results:\n            for message in messages:\n                warn(message)\n\n        if not results:\n            raise EmptyDataError(\"The response was returned empty.\")\n\n        return results\n\n    @staticmethod\n    def transform_data(\n        query: IntrinioHistoricalMarketCapQueryParams, data: list[dict], **kwargs: Any\n    ) -> list[IntrinioHistoricalMarketCapData]:\n        \"\"\"Return the transformed data.\"\"\"\n        return [\n            IntrinioHistoricalMarketCapData.model_validate(d)\n            for d in sorted(data, key=lambda x: x[\"date\"])\n        ]\n","sourceCodeStart":120,"sourceCodeEnd":151,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/intrinio/openbb_intrinio/models/historical_market_cap.py#L120-L151","documentation":"EmptyDataError raised when the historical market cap request finished with neither results nor messages - every symbol returned a 200 response with an empty/no 'historical_data' dict and no error text. Distinguished from error 694: here nothing notable happened at all, the API was simply silent.","triggerScenarios":"equity/fundamental/market_cap with provider='intrinio' where each symbol's response is a dict without the 'historical_data' key or with all entries filtered out by the item.get('value') check, and no 'Cannot look up' error was triggered.","commonSituations":"Date ranges entirely outside available history (start_date after latest data); symbols whose market cap series exists only under a different identifier; API returning 200 with empty object during partial outages.","solutions":["Widen or adjust the start_date/end_date range to overlap known coverage.","Test the symbol on other Intrinio endpoints to confirm universe membership.","Retry later if Intrinio is having data publication issues.","Fall back to computing market cap from shares outstanding times price via another provider."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"from datetime import date\n# ensure the requested window plausibly overlaps data availability\nassert query_start < date.today() and query_end >= date(2000, 1, 1), 'date window outside coverage'","typeGuard":null,"tryCatchPattern":"from openbb_core.provider.exceptions import EmptyDataError\ntry:\n    res = obb.equity.fundamental.market_cap(symbol=sym, provider='intrinio')\nexcept EmptyDataError:\n    res = obb.equity.fundamental.market_cap(symbol=sym, provider='fmp')  # or compute shares*price","preventionTips":["Set date ranges that overlap known history","Distinguish silent-empty (this) from not-found (error 694)","Retry later during suspected publication outages"],"tags":["intrinio","market-cap","empty-data"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}