{"record":{"id":"e3ce9c0a153a6400","repo":"OpenBB-finance/OpenBB","slug":"the-request-was-successful-but-no-data-was-returne-e3ce9c","errorCode":null,"errorMessage":"The request was successful but no data was returned.","messagePattern":"The request was successful but no data was returned\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/government_us/openbb_government_us/models/commodity_psd_report.py","lineNumber":186,"sourceCode":"                    )\n                )\n        except Exception as e:\n            raise OpenBBError(e) from e\n\n        return {\"content\": output}\n\n    @staticmethod\n    def transform_data(\n        query: GovernmentUsCommodityPsdReportQueryParams,\n        data: dict,\n        **kwargs: Any,\n    ) -> GovernmentUsCommodityPsdReportData:\n        \"\"\"Transform data into the encoded format.\"\"\"\n        # pylint: disable=import-outside-toplevel\n        import base64\n\n        if not data:\n            raise OpenBBError(\"The request was successful but no data was returned.\")\n\n        encoded_content = base64.b64encode(data.get(\"content\", b\"\")).decode(\"utf-8\")  # type: ignore\n        filename = f\"psd_report_{query.commodity}_{query.year}_{query.month:02d}.pdf\"\n        data_format = {\n            \"data_type\": \"pdf\",\n            \"filename\": filename,\n        }\n\n        return GovernmentUsCommodityPsdReportData(\n            content=encoded_content, data_format=data_format\n        )\n","sourceCodeStart":168,"sourceCodeEnd":198,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/government_us/openbb_government_us/models/commodity_psd_report.py#L168-L198","documentation":"Error \"The request was successful but no data was returned.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/government_us/openbb_government_us/models/commodity_psd_report.py:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the commodity, year, and month parameters have published data.","Try a different period or commodity.","Retry later in case of a transient server issue."],"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"}