{"record":{"id":"0886dc490b0bb40c","repo":"OpenBB-finance/OpenBB","slug":"fred-api-error-message","errorCode":null,"errorMessage":"{FRED API error_message}","messagePattern":"\\{FRED API error_message\\}","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fred/openbb_fred/utils/fred_base.py","lineNumber":74,"sourceCode":"        -------\n        data : Series\n            a Series where each index is the observation date and the value is the data\n            for the Fred series\n        \"\"\"\n        url = f\"{ROOT_URL}/series/observations?series_id={series_id}\"\n        if start_date:\n            url += \"&observation_start=\" + start_date.strftime(\"%Y-%m-%d\")\n        if end_date:\n            url += \"&observation_end=\" + end_date.strftime(\"%Y-%m-%d\")\n        if kwargs.keys():\n            url += \"&\" + urlencode(\n                {k: v for k, v in kwargs.items() if k != \"preferences\"}\n            )\n        root = self.__fetch_data(url, **kwargs)\n        if root is None:\n            raise OpenBBError(\"No data exists for series id: \" + series_id)\n        if \"error_code\" in root and \"error_message\" in root and root[\"error_message\"]:\n            raise OpenBBError(root[\"error_message\"])\n        return root[\"observations\"]\n","sourceCodeStart":56,"sourceCodeEnd":76,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fred/openbb_fred/utils/fred_base.py#L56-L76","documentation":"Error \"{FRED API error_message}\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fred/openbb_fred/utils/fred_base.py:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the FRED API error_message for the specific cause.","Verify your FRED API key is valid and not rate limited.","Check the request parameters against the FRED API documentation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}