Skip to main content

All Questions

Tagged with
0 votes
1 answer
260 views

AWS SDK Javascript v3 needing Node polyfills

I'm trying to use AWS Translate in my React app, and it seems to be needing a lot of Node polyfills. Is the AWS SDK intended for Node.js use only or do I just need to install like 12 polyfills? The ...
kenzie's user avatar
  • 13
2 votes
2 answers
886 views

Invoke AWS Lambda into React page using aws-sdk

I have this simple form executed into React page: import React from 'react'; import { Link } from 'react-router-dom'; import {LambdaClient, InvokeCommand, LogType} from "@aws-sdk/client-lambda&...
Peter Penzov's user avatar
  • 1,632
0 votes
1 answer
972 views

How to pass aws credentials

I am very new to react and I am building a UI from where I can trigger AWS Batch jobs. In this process, I am using @awws-sdk/client-batch import { BatchClient, SubmitJobCommand, CancelJobCommand, ...
Ram's user avatar
  • 415
0 votes
1 answer
411 views

Can you use aws-sdk/util-dynamodb unmarshall in Reactjs?

I have an API Gateway resource which calls a Dynamodb post request to query a table. I'm trying to call the API within my React app using Axios. The API is working, returning the data as expected (...
Clarkie's user avatar
  • 79
1 vote
0 answers
91 views

Is there a way to update headers of Chime Messaging API of aws-sdk/clients/chimesdkmessaging in ReactJs?

I am using aws-sdk/clients/chimesdkmessaging to make requests to get/delete/send channel messages. But the issue is that the temporary credentials are expired after 1 hour and I cannot use the ...
Sangeet's user avatar
  • 145
0 votes
0 answers
151 views

Node.js - Files Uploaded to an S3 bucket from another S3 bucket doesn't display on page

I'm copying image files from an AWS S3 bucket to another S3 bucket using a Node.js program. Copied image files will be displayed on a React.js page. The files did get copied and I can see them in S3 ...
SJaka's user avatar
  • 860
-2 votes
1 answer
493 views

Adding an email address in cc to an existing React/JS code

The code below is used to send emails to the persons registering on my website. Currently, the only person receiving the emails is the person who registered, however I'd like an email address e.g. ...
Greg's user avatar
  • 3,063
0 votes
0 answers
2k views

aws-sdk Cannot read properties of undefined (reading 'region') in react

I'm importing the following in my react app const AWS = require('aws-sdk/dist/aws-sdk'); upon onSuccess in authenticateUser i'm getting the following error onSignInFailure: TypeError: Cannot read ...
Chaitanya's user avatar
1 vote
0 answers
176 views

User is not authenticated message in response after succesful authenticateUser method and tokens generated in cognito-identity-js

User is not authenticated message is getting in the response while i'm trying to do updateUserAttribute, deleteUser (authenticated user), verifyUserAttribute, after succesful login authenticateUser ...
Chaitanya's user avatar
1 vote
0 answers
601 views

React aws-sdk "ConfigError: Missing region in config" after setting region DynamoDB

I have set the region in the AWS.config at the start of my code. I confirmed it was set properly before calling the DocClient.scan function. However, on running the code, I get an error that the ...
Ryan Lindemulder's user avatar
3 votes
0 answers
929 views

Reactjs Integration Testing Cognito Native Crypto Module Could Not Be Used To Get Secure Random Number

I have an integration test that uses the AWS Cognito library; specifically, I'm calling CognitoUser.authenticateUser(). When I start my webpage this all works fine: however, in my tests I'm getting ...
Przemek Lach's user avatar
  • 1,548
1 vote
1 answer
489 views

Require is not defined. Object.crypto object.url

I am trying to upload a file from my react application, and after installing aws-sdk, I am having the following error: external "crypto":1 Uncaught ReferenceError: require is not defined ...
Alexis's user avatar
  • 521
0 votes
2 answers
2k views

"TypeError: Cannot read property 'Stream' of undefined" While connecting to Athena from React

I am trying to connect to AWS Athena and execute a query. I am using athena-express for this. When I try to query I am getting the following error. Error: TypeError: Cannot read property 'Stream' of ...
kailash nath's user avatar
0 votes
2 answers
2k views

How to use AWS Textract in React/NextJS

Hey i'm hoping someone can help me tidy this up or even just point me in the right direction. I'm hoping I'm at least close/on the right track. Firstly I am using this. My code is below. UPDATE: Error:...
MomasVII's user avatar
  • 5,101
0 votes
1 answer
74 views

AWS JS SDK: How do I access GameLift data from a subaccount / another role using the root IAM account?

I'm not too familiar with the terms, so please bear with me. I'm working on a CMS site using react. We've already got logon via AWS Cognito in place, and we used to have a page that displays GameFleet ...
zack_falcon's user avatar
  • 4,386

15 30 50 per page