Initiating auth in a Canary returns no data #2352
Labels
bug
This issue is a bug.
closed-for-staleness
needs-triage
This issue or PR still needs to be triaged.
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Hi. I am attempting to use the v3
CognitoIdentityProviderClient
to initiate an auth session using theUSER_PASSWORD_AUTH
flow. I am able to successfully run that code in my local environment as well as in lambdas, obtaining a response object with
the expected
AuthenticationResult
property. However, when I attempt to execute the same code as part of a new Canarythat I've written, the response includes only the
$metadata
property and none of the expected data such as theAuthenticationResult
property. Oddly, the$metadata
appears to indicate that the Cognito call succeeded (httpStatusCode: 200
).Also, strangely enough, if I convert the version 3 SDK code to use the equivalent calls in the version 2 SDK, the code works
and the response contains the expected properties, even in the Canary. Here is some basic code that appears to replicate the issue:
And here is the equivalent SDK v2 code that does seem to work:
The result from
console.log()
call in the SDK v3 code:The result from
console.log()
call in the SDK v2 code:Another bit of information is that I was able to locate the Cognito invocation for the v3 call in the Cloudtrail event logs. It appears to contain the
authenticationResult
information as expected:So, it appears that the contents of the response are somehow being removed somewhere between Cognito and the Canary in the v3 call. The Canary I'm using is running using the
syn-nodejs-puppeteer-3.1
runtime.The text was updated successfully, but these errors were encountered: