Skip to content

How to correctly set Textract AnalyzeDocumentRequest syntax #3823

Answered by TheNopera
TheNopera asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I forgot to comment here how I fixed the issue, I did notice this mistake you pointed and fixed it afterwards. However the problem persisted. With the information I initially provided, no one would have been able to guess it (sorry about that!).

Root Cause

The issue was with the Text field in the Query objects I was sending to Textract:

Textract's Query.Text field does not accept special characters like accents (e.g., á, é, ã, etc.).
I was passing queries like "Exame de Próstata" or "Coração" which contain accented characters. Once I removed all accents from the Text values (e.g., changed "Próstata" to "Prostata"), everything worked fine. Thanks for the help

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TheNopera
Comment options

Answer selected by TheNopera
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants