{"record":{"id":"0949e30bd8f39001","repo":"OpenBB-finance/OpenBB","slug":"this-charting-method-does-not-support-provider-0949e3","errorCode":null,"errorMessage":"This charting method does not support {provider}. Supported providers: bls.","messagePattern":"This charting method does not support (.+?)\\. Supported providers: bls\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"openbb_platform/extensions/economy/openbb_economy/economy_views.py","lineNumber":359,"sourceCode":"        bar_kwargs: Optional[dict]\n            Additional keyword arguments applied to `fig.add_bar`.\n        scatter_kwargs: Optional[dict]\n            Additional keyword arguments applied to `fig.add_scatter`.\n        layout_kwargs: Optional[dict]\n            Additional keyword arguments applied to `fig.update_layout`.\n        \"\"\"\n        # pylint: disable=import-outside-toplevel\n        from openbb_charting.charts.generic_charts import bar_chart, line_chart\n        from openbb_charting.charts.helpers import (\n            z_score_standardization,\n        )\n        from openbb_core.app.utils import basemodel_to_df\n        from pandas import DataFrame\n\n        provider = kwargs.get(\"provider\")\n\n        if provider != \"bls\":\n            raise RuntimeError(\n                f\"This charting method does not support {provider}. Supported providers: bls.\"\n            )\n\n        _data = (\n            kwargs.pop(\"data\", None)\n            if \"data\" in kwargs and kwargs[\"data\"] is not None\n            else kwargs.get(\"obbject_item\")\n        )\n        df = DataFrame()\n\n        if isinstance(_data, DataFrame) and not _data.empty:\n            df = _data.reset_index() if _data.index.name == \"date\" else _data\n        else:\n            try:\n                df = basemodel_to_df(_data, index=None)  # type: ignore\n            except Exception as e:\n                raise RuntimeError(\"Unable to process supplied data.\") from e\n","sourceCodeStart":341,"sourceCodeEnd":377,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/extensions/economy/openbb_economy/economy_views.py#L341-L377","documentation":"The BLS charting view in economy_views.py only handles Bureau of Labor Statistics response shapes, so it raises RuntimeError when the provider attached to the data is anything other than 'bls'. This mirrors the FRED guard: the downstream pivot logic assumes BLS fields (symbol, date, value) and would mis-render other providers' data.","triggerScenarios":"Invoking the BLS charting route (economy_views.py:359, e.g. obb.economy.chart.bls or .charting.bls() on a dataset) with provider='fmp'/'fred'/'yfinance' or with None.","commonSituations":"Reusing a charting snippet across providers, charting data fetched from a custom provider, or forgetting to set provider='bls' on the data request.","solutions":["Fetch the data with provider='bls' (e.g. obb.economy.bls.multiple_series(..., provider='bls')) before charting.","For other providers' time series, use the generic charting (to_chart / obb.charting) instead of the BLS-specific view."],"exampleFix":"# before\nres = obb.economy.bls.multiple_series(symbols=['LNS14000000'], provider='oecd').charting.bls()\n\n# after\nres = obb.economy.bls.multiple_series(symbols=['LNS14000000'], provider='bls').charting.bls()","handlingStrategy":"validation","validationCode":"assert kwargs.get('provider', 'bls') == 'bls', (\n    'bls chart requires provider=\"bls\"'\n)","typeGuard":null,"tryCatchPattern":"try:\n    fig = res.charting.bls()\nexcept RuntimeError as e:\n    if 'does not support' in str(e) and 'bls' in str(e):\n        fig = res.charting.to_chart()  # generic fallback\n    else:\n        raise","preventionTips":["Fetch BLS series with provider='bls' before calling the BLS chart view.","Use the generic chart route for non-BLS time series.","Make provider an explicit parameter in reusable charting helpers."],"tags":["charting","bls","provider-mismatch","economy"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}