OpenBB-finance/OpenBB · error · OpenBBError

{str(e) or 'FRED request failed ({type(e).__name__}).'}

Error message

{str(e) or 'FRED request failed ({type(e).__name__}).'}

What it means

Error "{str(e) or 'FRED request failed ({type(e).__name__}).'}" thrown in OpenBB-finance/OpenBB.

Source

Thrown at openbb_platform/providers/fred/openbb_fred/models/manufacturing_outlook_ny.py:493

            raise OpenBBError("No valid topic selected. Please select a valid topic.")

        frequency = query.frequency[:1].lower() if query.frequency else None

        try:
            response = await FredSeriesFetcher.fetch_data(
                dict(
                    symbol=",".join(ids),
                    start_date=query.start_date,
                    end_date=query.end_date,
                    transform=query.transform,
                    frequency=frequency,
                    aggregation_method=query.aggregation_method,
                ),
                credentials,
            )
        except Exception as e:
            message = str(e) or f"FRED request failed ({type(e).__name__})."
            raise OpenBBError(message) from e

        return {
            "metadata": response.metadata,
            "data": [d.model_dump() for d in response.result],
        }

    @staticmethod
    def transform_data(
        query: FredManufacturingOutlookNYQueryParams,
        data: dict,
        **kwargs: Any,
    ) -> AnnotatedResult[list[FredManufacturingOutlookNYData]]:
        """Transform data."""
        # pylint: disable=import-outside-toplevel
        from numpy import nan
        from pandas import Categorical, DataFrame

        df = DataFrame(data.get("data", []))

View on GitHub (pinned to 3e071fcc2c)

Solutions

  1. Retry the request; transient FRED API failures are common.
  2. Verify your FRED API key is valid.
  3. Reduce the number of selected topics to avoid rate limiting.

When it happens

Trigger: Thrown at openbb_platform/providers/fred/openbb_fred/models/manufacturing_outlook_ny.py:493 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/474df124e1b5692d. Report an issue: GitHub.