File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
unstructured_platform_plugins Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 2525 get_schema_dict ,
2626 map_inputs ,
2727)
28- from unstructured_platform_plugins .exceptions import UnrecoverableException
2928from unstructured_platform_plugins .schema import FileDataMeta , NewRecord , UsageData
3029from unstructured_platform_plugins .schema .json_schema import (
3130 schema_to_base_model ,
@@ -225,16 +224,6 @@ async def _stream_response():
225224 else exc .detail ,
226225 file_data = request_dict .get ("file_data" , None ),
227226 )
228- except UnrecoverableException as ex :
229- logger .info ("Unrecoverable error occurred during plugin invocation" )
230- return InvokeResponse (
231- usage = usage ,
232- message_channels = message_channels ,
233- status_code = 512 ,
234- status_code_text = ex .message ,
235- filedata_meta = filedata_meta_model .model_validate (filedata_meta .model_dump ()),
236- file_data = request_dict .get ("file_data" , None ),
237- )
238227 except Exception as invoke_error :
239228 logger .error (f"failed to invoke plugin: { invoke_error } " , exc_info = True )
240229 http_error = wrap_error (invoke_error )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class ProviderError(BaseError):
3333
3434
3535class CatchAllError (BaseError ):
36- status_code : int = 512
36+ status_code : int = 500
3737
3838
3939def wrap_error (e : Exception ) -> HTTPException :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments