Skip to content

Commit 51c28a3

Browse files
authored
fix [QUA-232] Streaming response returns filedata_meta when handling exception (#56)
For description of the problem, see: https://linear.app/unstructured/issue/QUA-232/indexer-errors-get-swallowed-as-pydantic-validation-errors
1 parent 61a29e7 commit 51c28a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.34" # pragma: no cover
1+
__version__ = "0.0.35" # pragma: no cover

unstructured_platform_plugins/etl_uvicorn/api_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ async def _stream_response():
190190
InvokeResponse(
191191
usage=usage,
192192
message_channels=message_channels,
193-
filedata_meta=None,
193+
filedata_meta=filedata_meta_model.model_validate(filedata_meta.model_dump()),
194194
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
195195
status_code_text=f"[{e.__class__.__name__}] {e}",
196196
).model_dump_json()

0 commit comments

Comments
 (0)