2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
1
I was able to get it working. Actually it seems the issue had to do with the Workflow. I created a new custom workflow and no longer getting the error message.
beantwortet vor 4 Jahren
0
For anyone struggling with this as well, the answer above didn't work for me. I was creating all my resources on the fly so the workflow wasn't the issue.
The issue for me was I was giving a list of dictionaries as the root. ie my string was [{"valid_json": "foobar", ...}, {...}]. While this is parsable by json.loads and was directly coming from a json.dumps call, AWS apparently wants an object as the root. This isn't explicitly mentioned in the docs and took quite a lot of headache to finally come to the realization.
TLDR: Don't use a list at the root, use an object
beantwortet vor 2 Monaten
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
Thx! You saved me a lot of time. Got the same error and was tweaking the InputContent JSON and scratching my head for an hour!
I am new to textract and a2i. Just trying to understand. In below code..
inputContent = {
'initialValue': "Withdrawal",
'taskObject': s3_fname # the s3 object will be passed to the worker task UI to render
}
Why 'initialValue': "Withdrawal". What does it mean?