marieai / marie-ai

Integrate AI-powered Document Analysis Pipelines
MIT License
60 stars 5 forks source link

gRPC error: StatusCode.UNKNOWN Unexpected <class 'ValueError'>: the buffer is already decompressed #86

Open gregbugaj opened 1 year ago

gregbugaj commented 1 year ago

When large amount of regions is being processed we received an exception from GRPC. Not able to replicate that currently.

[INFO ][2023-10-05 16:10:47.163][186145150 :          ][pool-5-thread-10    ][ultAssetGenerationService] Time taken to process msg [StatusCode{statusId=4002, event='extract.started', terminal='false', msg='Marie-Extract started', ranged='false'}] : 221 ms
[INFO ][2023-10-05 16:10:47.164][          :          ][pool-5-thread-11    ][ultAssetGenerationService] Incoming Message : MarieEventNotification{event='extract.failed', status='FAILED', jobid='0651f265-54a0-7c3a-8000-73e863dc9cb5', jobtag='lbxid', payload={
  "type": "BadServerFlow",
  "message": "gRPC error: StatusCode.UNKNOWN Unexpected <class 'ValueError'>: the buffer is already decompressed\nNone",
  "filename": "rest_extension.py",
  "name": "process_request",
  "line_no": 296
}}
[INFO ][2023-10-05 16:10:47.164][          :          ][pool-5-thread-11    ][ultAssetGenerationService] Payload : {type=BadServerFlow, message=gRPC error: StatusCode.UNKNOWN Unexpected <class 'ValueError'>: the buffer is already decompressed
None, filename=rest_extension.py, name=process_request, line_no=296.0}