Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textract polling exec should assembly block array #3200

Closed
DenovVasil opened this issue Aug 29, 2024 · 0 comments
Closed

Textract polling exec should assembly block array #3200

DenovVasil opened this issue Aug 29, 2024 · 0 comments
Assignees
Labels
kind:bug Something isn't working

Comments

@DenovVasil
Copy link
Contributor

Now polling exec return last GetDocumentAnalysisResult.
this bug relate to #2923

Steps to Reproduce

  1. run textract connector with polling exec.

Expected Behavior

So basically if a response has a nextToken set, query again with the nextToken passed. Keep doing it until you get a response without nextToken.
What you should see (from my tests, but do double check) is that each response has the same metadata plus an array of blocks - the blocks differ and are what needs assembly.
So collect all responses with nextToken, then merge the responses into a single response for the process. Which should result in all blocks for the document being return, ie more than 1k if a long document.

requirements discussions https://camunda.slack.com/archives/D07K9UZRU57/p1724923821671829

Environment

  • OS: [e.g. Windows 7]
  • Library version: [e.g. 2.0.0]
  • Camunda version: [e.g. 8.0.4 (self-managed)]
@DenovVasil DenovVasil added the kind:bug Something isn't working label Aug 29, 2024
@DenovVasil DenovVasil self-assigned this Aug 29, 2024
@DenovVasil DenovVasil changed the title Polling exec should assembly block array Textract polling exec should assembly block array Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant