1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Can you try using the latest SDK version -
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1185.0.min.js"></script>
Additionally, the authentication role in Cognito Identity Pool should have Textract actions allowed. Is that assumed unauth role allowing it?
répondu il y a 2 ans
Thanks for answering. When I use the script line in your answer, I get 'AWS.Textract is not a constructor'. I have added 'AmazonTextractFullAccess' to the Unauth role I am using. Any ideas? Thanks!
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
There is something with the IAM Unauth role that is causing this, please post the policy document if possible. However, instead of going this route I would highly recommend taking a look at this example which uses SDK V3 where you get the latest features like Textract queries. This is assuming you are building your web-app using NPM or Yarn and web bundler like webpack which will take care of the bundling for you.
How do I post the policy document? Also, unfortunately I'm not using NPM or Yarn with my web app. That's the reason I am using V2 of the Javascript SDK.