Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.12

* **Bugfix: Fix UnrecoverableException exception handling to include full response**

## 0.0.11

* **Bugfix: Add UnrecoverableException exception handling back**
Expand Down
2 changes: 1 addition & 1 deletion unstructured_platform_plugins/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.11" # pragma: no cover
__version__ = "0.0.12" # pragma: no cover
7 changes: 6 additions & 1 deletion unstructured_platform_plugins/etl_uvicorn/api_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ async def _stream_response():
)
except UnrecoverableException as ex:
logger.info("Unrecoverable error occurred during plugin invocation")
return InvokeResponse(usage=usage, status_code=512, status_code_text=ex.message)
return InvokeResponse(
usage=usage,
status_code=512,
status_code_text=ex.message,
filedata_meta=filedata_meta_model.model_validate(filedata_meta.model_dump()),
)
except Exception as invoke_error:
logger.error(f"failed to invoke plugin: {invoke_error}", exc_info=True)
return InvokeResponse(
Expand Down