Description
When using the GET /entities/{eid}/pdf API endpoint, you may encounter the following error for certain experiments:
{
"errors": [
{
"status": "404",
"code": "NotFound",
"title": "The requested resource was not found."
}
]
}
Potential Causes
- Experiment Metadata or Configuration Issues
- The experiment may contain incomplete, corrupted, or unsupported metadata that prevents PDF generation.
- Review the experiment content, structure, and configuration for inconsistencies.
- PDF Generation Service Limitations
- Certain experiment states or data conditions may prevent the PDF from being generated successfully.
- If possible, make a minor edit to the experiment, save the changes, revert the edit if necessary, and then retry the export using the
GET /entities/{eid}/pdfendpoint.
- Permissions or Access Restrictions
- The requesting user may not have sufficient permissions to generate or access the PDF.
- Verify that the experiment is accessible, and try generating a PDF from the user interface to determine whether the issue is API-specific.
Workaround
If the synchronous PDF export endpoint fails, use the asynchronous PDF export workflow instead:
- Export the entity asynchronously using the
PUT /entities/export/pdfendpoint. The request body can be empty. - Retrieve the generated PDF using the returned file ID and the
GET /entities/export/pdf/{fileid}endpoint.
Comments
0 comments
Article is closed for comments.