{"record":{"id":"4b85dd6cf48958cc","repo":"OpenBB-finance/OpenBB","slug":"error-response-get-error-message-response","errorCode":null,"errorMessage":"Error: {response.get('error')}. Message: {response.get('message')}","messagePattern":"Error: (.+?)\\. Message: (.+?)","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/intrinio/openbb_intrinio/models/market_snapshots.py","lineNumber":165,"sourceCode":"        from datetime import timezone as datetime_timezone  # noqa\n        from io import BytesIO  # noqa\n        from openbb_core.provider.utils.helpers import (\n            amake_request,\n            safe_fromtimestamp,\n        )  # noqa\n        from pandas import DataFrame, notna, read_csv, to_datetime  # noqa\n\n        api_key = credentials.get(\"intrinio_api_key\") if credentials else \"\"\n\n        # This gets the URL to the actual file.\n        url = f\"https://api-v2.intrinio.com/securities/snapshots?api_key={api_key}\"\n        if query.date:\n            url += f\"&at_datetime={query.date}\"\n\n        response = await amake_request(url, **kwargs)\n\n        if isinstance(response, dict) and \"error\" in response:\n            raise OpenBBError(\n                f\"Error: {response.get('error')}. Message: {response.get('message')}\"\n            )\n        urls: list = []\n        # Get the URL to the CSV file.\n        if response.get(\"snapshots\"):  # type: ignore\n            for d in response[\"snapshots\"]:  # type: ignore\n                if d.get(\"files\"):\n                    for f in d[\"files\"]:\n                        if f.get(\"url\"):\n                            urls.append(f.get(\"url\"))\n        if not urls:\n            raise OpenBBError(\"No snapshots found.\")\n\n        results: list = []\n\n        async def response_callback(response, _):\n            \"\"\"Response Callback.\"\"\"\n            return await response.read()","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/intrinio/openbb_intrinio/models/market_snapshots.py#L147-L183","documentation":"Error \"Error: {response.get('error')}. Message: {response.get('message')}\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/intrinio/openbb_intrinio/models/market_snapshots.py:165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the error and message fields in the response for the specific cause.","Verify your Intrinio API key is valid and has market snapshot access.","Adjust the request parameters and retry."],"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-15T22:17:37.221Z"}