OpenBB-finance/OpenBB · error · OpenBBError

Empty CSV file.

Error message

Empty CSV file.

What it means

Error "Empty CSV file." thrown in OpenBB-finance/OpenBB.

Source

Thrown at openbb_platform/providers/intrinio/openbb_intrinio/models/market_snapshots.py:195

            raise OpenBBError("No snapshots found.")

        results: list = []

        async def response_callback(response, _):
            """Response Callback."""
            return await response.read()

        async def get_csv(url):
            """Return the CSV data."""
            response = await amake_request(
                url, response_callback=response_callback, **kwargs
            )
            df = DataFrame()
            if isinstance(response, bytes):
                file = gzip.decompress(response)
                df = read_csv(BytesIO(file))
            if df.empty:
                raise OpenBBError("Empty CSV file.")
            df.columns = df.columns.str.lower().str.replace(" ", "_")

            df = (
                df.dropna(how="all", axis=1)
                .dropna(subset=["trade_price", "last_trade_timestamp", "symbol"])
                .sort_values("last_trade_timestamp", ascending=False)
            )[
                [
                    "symbol",
                    "trade_price",
                    "trade_size",
                    "total_trade_volume",
                    "bid_size",
                    "bid_price",
                    "ask_price",
                    "ask_size",
                    "last_trade_timestamp",
                    "last_bid_timestamp",

View on GitHub (pinned to 3e071fcc2c)

Solutions

  1. Retry the request; the CSV download may have failed.
  2. Adjust the query parameters; the selection may contain no rows.
  3. Verify your Intrinio subscription includes the requested data.

When it happens

Trigger: Thrown at openbb_platform/providers/intrinio/openbb_intrinio/models/market_snapshots.py:195 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of OpenBB-finance/OpenBB@3e071fcc2c (2026-08-14). Data as JSON: /api/errors/45ea58fe99d72407. Report an issue: GitHub.